]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Remove unused ccHeaderStats global (#2038)
authorAmos Jeffries <yadij@users.noreply.github.com>
Wed, 26 Mar 2025 12:58:00 +0000 (12:58 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Fri, 28 Mar 2025 16:24:20 +0000 (16:24 +0000)
src/HttpHdrCc.cc

index 2bd9303208651e93d080addc2485f6f3cff24e0f..357a0b2b881aec1b323b197da00b01815082398f 100644 (file)
@@ -13,7 +13,6 @@
 #include "base/LookupTable.h"
 #include "HttpHdrCc.h"
 #include "HttpHeader.h"
-#include "HttpHeaderFieldStat.h"
 #include "HttpHeaderStat.h"
 #include "HttpHeaderTools.h"
 #include "sbuf/SBuf.h"
@@ -80,8 +79,6 @@ ccNameByType(const RawId rawId)
     return std::nullopt;
 }
 
-std::vector<HttpHeaderFieldStat> ccHeaderStats(HttpHdrCcType::CC_ENUM_END);
-
 /// used to walk a table of http_header_cc_type structs
 static HttpHdrCcType &
 operator++ (HttpHdrCcType &aHeader)
@@ -144,7 +141,6 @@ HttpHdrCc::parse(const String & str)
         if (isSet(type)) {
             if (type != HttpHdrCcType::CC_OTHER) {
                 debugs(65, 2, "hdr cc: ignoring duplicate cache-directive: near '" << item << "' in '" << str << "'");
-                ++ ccHeaderStats[type].repCount;
                 continue;
             }
         }