From: robertc <> Date: Sat, 22 Apr 2006 12:03:42 +0000 (+0000) Subject: Dead code removal. X-Git-Tag: SQUID_3_0_PRE4~254 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=01e420ef998e95d51d184e9a0de29897c56a2d59;p=thirdparty%2Fsquid.git Dead code removal. --- diff --git a/src/mime.cc b/src/mime.cc index 9d36b6dc3b..b9aee8ffa4 100644 --- a/src/mime.cc +++ b/src/mime.cc @@ -1,6 +1,6 @@ /* - * $Id: mime.cc,v 1.123 2006/02/17 20:15:35 wessels Exp $ + * $Id: mime.cc,v 1.124 2006/04/22 06:03:42 robertc Exp $ * * DEBUG: section 25 MIME Parsing * AUTHOR: Harvest Derived @@ -75,8 +75,9 @@ public: char transfer_mode; unsigned int view_option: + 1; -1, download_option: +unsigned int download_option: 1; mimeEntry *next; MimeIcon theIcon; @@ -220,36 +221,6 @@ headersEnd(const char *mime, size_t l) return 0; } -const char * -mime_get_auth(const char *hdr, const char *auth_scheme, const char **auth_field) -{ - char *auth_hdr; - char *t; - - if (auth_field) - *auth_field = NULL; - - if (hdr == NULL) - return NULL; - - if ((auth_hdr = mime_get_header(hdr, "Authorization")) == NULL) - return NULL; - - if (auth_field) - *auth_field = auth_hdr; - - if ((t = strtok(auth_hdr, " \t")) == NULL) - return NULL; - - if (strcasecmp(t, auth_scheme) != 0) - return NULL; - - if ((t = strtok(NULL, " \t")) == NULL) - return NULL; - - return base64_decode(t); -} - static mimeEntry * mimeGetEntry(const char *fn, int skip_encodings) { diff --git a/src/protos.h b/src/protos.h index a824d801b0..6207f480a9 100644 --- a/src/protos.h +++ b/src/protos.h @@ -1,6 +1,6 @@ /* - * $Id: protos.h,v 1.520 2006/04/22 05:29:19 robertc Exp $ + * $Id: protos.h,v 1.521 2006/04/22 06:03:42 robertc Exp $ * * * SQUID Web Proxy Cache http://www.squid-cache.org/ @@ -452,7 +452,6 @@ SQUIDCEXTERN int ipcacheAddEntryFromHosts(const char *name, const char *ipaddr); SQUIDCEXTERN char *mime_get_header(const char *mime, const char *header); SQUIDCEXTERN char *mime_get_header_field(const char *mime, const char *name, const char *prefix); SQUIDCEXTERN size_t headersEnd(const char *, size_t); -SQUIDCEXTERN const char *mime_get_auth(const char *hdr, const char *auth_scheme, const char **auth_field); SQUIDCEXTERN void mimeInit(char *filename); SQUIDCEXTERN void mimeFreeMemory(void);