diff options
| author | Stefan Monnier | 2004-04-12 20:44:14 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2004-04-12 20:44:14 +0000 |
| commit | b43eb9abd6d22ebfb038a523cda7ed64d9864155 (patch) | |
| tree | 8e5c691913eb9aae9597a9e48a15fcebf93b585c | |
| parent | f1300fba1c23272bab6dfa92810821af77343032 (diff) | |
| download | emacs-b43eb9abd6d22ebfb038a523cda7ed64d9864155.tar.gz emacs-b43eb9abd6d22ebfb038a523cda7ed64d9864155.zip | |
(url-http-parse-headers, url-http-file-exists-p): Remove unused var `version'.
| -rw-r--r-- | lisp/url/url-http.el | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/lisp/url/url-http.el b/lisp/url/url-http.el index 6596225e111..b2f797d09c7 100644 --- a/lisp/url/url-http.el +++ b/lisp/url/url-http.el | |||
| @@ -1,27 +1,29 @@ | |||
| 1 | ;;; url-http.el --- HTTP retrieval routines | 1 | ;;; url-http.el --- HTTP retrieval routines |
| 2 | |||
| 3 | ;; Copyright (c) 1999, 2001, 2004 Free Software Foundation, Inc. | ||
| 4 | |||
| 2 | ;; Author: Bill Perry <wmperry@gnu.org> | 5 | ;; Author: Bill Perry <wmperry@gnu.org> |
| 3 | ;; Keywords: comm, data, processes | 6 | ;; Keywords: comm, data, processes |
| 7 | ;; This file is part of GNU Emacs. | ||
| 8 | ;; | ||
| 9 | ;; GNU Emacs is free software; you can redistribute it and/or modify | ||
| 10 | ;; it under the terms of the GNU General Public License as published by | ||
| 11 | ;; the Free Software Foundation; either version 2, or (at your option) | ||
| 12 | ;; any later version. | ||
| 13 | ;; | ||
| 14 | ;; GNU Emacs is distributed in the hope that it will be useful, | ||
| 15 | ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 16 | ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 17 | ;; GNU General Public License for more details. | ||
| 18 | ;; | ||
| 19 | ;; You should have received a copy of the GNU General Public License | ||
| 20 | ;; along with GNU Emacs; see the file COPYING. If not, write to the | ||
| 21 | ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, | ||
| 22 | ;; Boston, MA 02111-1307, USA. | ||
| 4 | 23 | ||
| 5 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 24 | ;;; Commentary: |
| 6 | ;;; Copyright (c) 1999, 2001 Free Software Foundation, Inc. | 25 | |
| 7 | ;;; | 26 | ;;; Code: |
| 8 | ;;; This file is part of GNU Emacs. | ||
| 9 | ;;; | ||
| 10 | ;;; GNU Emacs is free software; you can redistribute it and/or modify | ||
| 11 | ;;; it under the terms of the GNU General Public License as published by | ||
| 12 | ;;; the Free Software Foundation; either version 2, or (at your option) | ||
| 13 | ;;; any later version. | ||
| 14 | ;;; | ||
| 15 | ;;; GNU Emacs is distributed in the hope that it will be useful, | ||
| 16 | ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 17 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 18 | ;;; GNU General Public License for more details. | ||
| 19 | ;;; | ||
| 20 | ;;; You should have received a copy of the GNU General Public License | ||
| 21 | ;;; along with GNU Emacs; see the file COPYING. If not, write to the | ||
| 22 | ;;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, | ||
| 23 | ;;; Boston, MA 02111-1307, USA. | ||
| 24 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
| 25 | 27 | ||
| 26 | (eval-when-compile | 28 | (eval-when-compile |
| 27 | (require 'cl) | 29 | (require 'cl) |
| @@ -370,8 +372,7 @@ should be shown to the user." | |||
| 370 | (url-http-parse-response) | 372 | (url-http-parse-response) |
| 371 | (mail-narrow-to-head) | 373 | (mail-narrow-to-head) |
| 372 | ;;(narrow-to-region (point-min) url-http-end-of-headers) | 374 | ;;(narrow-to-region (point-min) url-http-end-of-headers) |
| 373 | (let ((version nil) | 375 | (let ((class nil) |
| 374 | (class nil) | ||
| 375 | (success nil)) | 376 | (success nil)) |
| 376 | (setq class (/ url-http-response-status 100)) | 377 | (setq class (/ url-http-response-status 100)) |
| 377 | (url-http-debug "Parsed HTTP headers: class=%d status=%d" class url-http-response-status) | 378 | (url-http-debug "Parsed HTTP headers: class=%d status=%d" class url-http-response-status) |
| @@ -1105,8 +1106,7 @@ CBARGS as the arguments." | |||
| 1105 | 1106 | ||
| 1106 | ;;;###autoload | 1107 | ;;;###autoload |
| 1107 | (defun url-http-file-exists-p (url) | 1108 | (defun url-http-file-exists-p (url) |
| 1108 | (let ((version nil) | 1109 | (let ((status nil) |
| 1109 | (status nil) | ||
| 1110 | (exists nil) | 1110 | (exists nil) |
| 1111 | (buffer (url-http-head url))) | 1111 | (buffer (url-http-head url))) |
| 1112 | (if (not buffer) | 1112 | (if (not buffer) |
| @@ -1219,5 +1219,5 @@ p3p | |||
| 1219 | 1219 | ||
| 1220 | (provide 'url-http) | 1220 | (provide 'url-http) |
| 1221 | 1221 | ||
| 1222 | ;;; arch-tag: ba7c59ae-c0f4-4a31-9617-d85f221732ee | 1222 | ;; arch-tag: ba7c59ae-c0f4-4a31-9617-d85f221732ee |
| 1223 | ;;; url-http.el ends here | 1223 | ;;; url-http.el ends here |