]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Removing unused function httpHdrCcJoinWith()
authorwessels <>
Fri, 16 Sep 2005 01:04:56 +0000 (01:04 +0000)
committerwessels <>
Fri, 16 Sep 2005 01:04:56 +0000 (01:04 +0000)
src/HttpHdrCc.cc
src/protos.h

index dfa43d0349d24900a8d9f9e51c14ecf9c824c789..d9d718570b7072d9324da962e37a2df227808dc1 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: HttpHdrCc.cc,v 1.27 2005/04/23 14:49:41 serassio Exp $
+ * $Id: HttpHdrCc.cc,v 1.28 2005/09/15 19:04:56 wessels Exp $
  *
  * DEBUG: section 65    HTTP Cache Control Header
  * AUTHOR: Alex Rousskov
@@ -257,23 +257,6 @@ httpHdrCcPackInto(const HttpHdrCc * cc, Packer * p)
         packerPrintf(p, (pcount ? ", %s" : "%s"), cc->other.buf());
 }
 
-void
-httpHdrCcJoinWith(HttpHdrCc * cc, const HttpHdrCc * new_cc)
-{
-    assert(cc && new_cc);
-
-    if (cc->max_age < 0)
-        cc->max_age = new_cc->max_age;
-
-    if (cc->s_maxage < 0)
-        cc->s_maxage = new_cc->s_maxage;
-
-    if (cc->max_stale < 0)
-        cc->max_stale = new_cc->max_stale;
-
-    cc->mask |= new_cc->mask;
-}
-
 /* negative max_age will clean old max_Age setting */
 void
 httpHdrCcSetMaxAge(HttpHdrCc * cc, int max_age)
index 093ea1c5f61dc6ef53208d67174dfd325f7703b7..1f63b30439c96f55db2edf54632ce894834e3157 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: protos.h,v 1.510 2005/09/14 21:09:38 wessels Exp $
+ * $Id: protos.h,v 1.511 2005/09/15 19:04:56 wessels Exp $
  *
  *
  * SQUID Web Proxy Cache          http://www.squid-cache.org/
@@ -321,7 +321,6 @@ SQUIDCEXTERN HttpHdrCc *httpHdrCcParseCreate(const String * str);
 SQUIDCEXTERN void httpHdrCcDestroy(HttpHdrCc * cc);
 SQUIDCEXTERN HttpHdrCc *httpHdrCcDup(const HttpHdrCc * cc);
 SQUIDCEXTERN void httpHdrCcPackInto(const HttpHdrCc * cc, Packer * p);
-SQUIDCEXTERN void httpHdrCcJoinWith(HttpHdrCc * cc, const HttpHdrCc * new_cc);
 SQUIDCEXTERN void httpHdrCcSetMaxAge(HttpHdrCc * cc, int max_age);
 SQUIDCEXTERN void httpHdrCcSetSMaxAge(HttpHdrCc * cc, int s_maxage);
 SQUIDCEXTERN void httpHdrCcUpdateStats(const HttpHdrCc * cc, StatHist * hist);