mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-24 06:20:43 -08:00
(url-http-parse-headers, url-http-file-exists-p): Remove unused var `version'.
This commit is contained in:
parent
f1300fba1c
commit
b43eb9abd6
1 changed files with 25 additions and 25 deletions
|
|
@ -1,27 +1,29 @@
|
||||||
;;; url-http.el --- HTTP retrieval routines
|
;;; url-http.el --- HTTP retrieval routines
|
||||||
|
|
||||||
|
;; Copyright (c) 1999, 2001, 2004 Free Software Foundation, Inc.
|
||||||
|
|
||||||
;; Author: Bill Perry <wmperry@gnu.org>
|
;; Author: Bill Perry <wmperry@gnu.org>
|
||||||
;; Keywords: comm, data, processes
|
;; Keywords: comm, data, processes
|
||||||
|
;; This file is part of GNU Emacs.
|
||||||
|
;;
|
||||||
|
;; GNU Emacs is free software; you can redistribute it and/or modify
|
||||||
|
;; it under the terms of the GNU General Public License as published by
|
||||||
|
;; the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
;; any later version.
|
||||||
|
;;
|
||||||
|
;; GNU Emacs is distributed in the hope that it will be useful,
|
||||||
|
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
;; GNU General Public License for more details.
|
||||||
|
;;
|
||||||
|
;; You should have received a copy of the GNU General Public License
|
||||||
|
;; along with GNU Emacs; see the file COPYING. If not, write to the
|
||||||
|
;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
|
;; Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;; Commentary:
|
||||||
;;; Copyright (c) 1999, 2001 Free Software Foundation, Inc.
|
|
||||||
;;;
|
;;; Code:
|
||||||
;;; This file is part of GNU Emacs.
|
|
||||||
;;;
|
|
||||||
;;; GNU Emacs is free software; you can redistribute it and/or modify
|
|
||||||
;;; it under the terms of the GNU General Public License as published by
|
|
||||||
;;; the Free Software Foundation; either version 2, or (at your option)
|
|
||||||
;;; any later version.
|
|
||||||
;;;
|
|
||||||
;;; GNU Emacs is distributed in the hope that it will be useful,
|
|
||||||
;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
;;; GNU General Public License for more details.
|
|
||||||
;;;
|
|
||||||
;;; You should have received a copy of the GNU General Public License
|
|
||||||
;;; along with GNU Emacs; see the file COPYING. If not, write to the
|
|
||||||
;;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
||||||
;;; Boston, MA 02111-1307, USA.
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
||||||
|
|
||||||
(eval-when-compile
|
(eval-when-compile
|
||||||
(require 'cl)
|
(require 'cl)
|
||||||
|
|
@ -370,8 +372,7 @@ should be shown to the user."
|
||||||
(url-http-parse-response)
|
(url-http-parse-response)
|
||||||
(mail-narrow-to-head)
|
(mail-narrow-to-head)
|
||||||
;;(narrow-to-region (point-min) url-http-end-of-headers)
|
;;(narrow-to-region (point-min) url-http-end-of-headers)
|
||||||
(let ((version nil)
|
(let ((class nil)
|
||||||
(class nil)
|
|
||||||
(success nil))
|
(success nil))
|
||||||
(setq class (/ url-http-response-status 100))
|
(setq class (/ url-http-response-status 100))
|
||||||
(url-http-debug "Parsed HTTP headers: class=%d status=%d" class url-http-response-status)
|
(url-http-debug "Parsed HTTP headers: class=%d status=%d" class url-http-response-status)
|
||||||
|
|
@ -1105,8 +1106,7 @@ CBARGS as the arguments."
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun url-http-file-exists-p (url)
|
(defun url-http-file-exists-p (url)
|
||||||
(let ((version nil)
|
(let ((status nil)
|
||||||
(status nil)
|
|
||||||
(exists nil)
|
(exists nil)
|
||||||
(buffer (url-http-head url)))
|
(buffer (url-http-head url)))
|
||||||
(if (not buffer)
|
(if (not buffer)
|
||||||
|
|
@ -1219,5 +1219,5 @@ p3p
|
||||||
|
|
||||||
(provide 'url-http)
|
(provide 'url-http)
|
||||||
|
|
||||||
;;; arch-tag: ba7c59ae-c0f4-4a31-9617-d85f221732ee
|
;; arch-tag: ba7c59ae-c0f4-4a31-9617-d85f221732ee
|
||||||
;;; url-http.el ends here
|
;;; url-http.el ends here
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue