From: Amos Jeffries Date: Fri, 28 Mar 2025 17:49:15 +0000 (+0000) Subject: Remove unused scHeaderStats global (#2039) X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c807ccfd49d9af13dfb3f25f1f454194eff3a995;p=thirdparty%2Fsquid.git Remove unused scHeaderStats global (#2039) --- diff --git a/src/HttpHdrSc.cc b/src/HttpHdrSc.cc index 77faed2d05..504373f62d 100644 --- a/src/HttpHdrSc.cc +++ b/src/HttpHdrSc.cc @@ -35,7 +35,6 @@ static const LookupTable::Record ScAttrs[] { {nullptr, SC_ENUM_END} /* SC_ENUM_END taken as invalid value */ }; LookupTable scLookupTable(SC_ENUM_END, ScAttrs); -std::vector 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; }