]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Remove unused scHeaderStats global (#2039)
authorAmos Jeffries <yadij@users.noreply.github.com>
Fri, 28 Mar 2025 17:49:15 +0000 (17:49 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Fri, 28 Mar 2025 17:49:26 +0000 (17:49 +0000)
src/HttpHdrSc.cc

index 77faed2d0514c89921fc0df7388e17a87eaf83ae..504373f62d51ef06091b7c49f46efcfacb9ef748 100644 (file)
@@ -35,7 +35,6 @@ static const LookupTable<http_hdr_sc_type>::Record ScAttrs[] {
     {nullptr, SC_ENUM_END} /* SC_ENUM_END taken as invalid value */
 };
 LookupTable<http_hdr_sc_type> scLookupTable(SC_ENUM_END, ScAttrs);
-std::vector<HttpHeaderFieldStat> scHeaderStats(SC_ENUM_END);
 
 // used when iterating over flags
 http_hdr_sc_type &operator++ (http_hdr_sc_type &aHeader)
@@ -134,9 +133,6 @@ HttpHdrSc::parse(const String * str)
         if (sct->isSet(type)) {
             if (type != SC_OTHER)
                 debugs(90, 2, "ignoring duplicate control-directive near '" << item << "' in '" << *str << "'");
-
-            ++ scHeaderStats[type].repCount;
-
             continue;
         }