]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Dead code removal.
authorrobertc <>
Sat, 22 Apr 2006 12:03:42 +0000 (12:03 +0000)
committerrobertc <>
Sat, 22 Apr 2006 12:03:42 +0000 (12:03 +0000)
src/mime.cc
src/protos.h

index 9d36b6dc3b4c33738ab92ee5597b8c0a6a6b0279..b9aee8ffa4cf734f8770d39d44726cb103a491ef 100644 (file)
@@ -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)
 {
index a824d801b0b4f069bc5279fbf14b7c481b94f58e..6207f480a9ce274539c5f14cd622b5766ee4bd48 100644 (file)
@@ -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);