From dbd76bc89e691d445fe0647e5fae931330db3b06 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Wed, 26 Mar 2025 12:58:00 +0000 Subject: [PATCH] Remove unused ccHeaderStats global (#2038) --- src/HttpHdrCc.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/HttpHdrCc.cc b/src/HttpHdrCc.cc index 2bd9303208..357a0b2b88 100644 --- a/src/HttpHdrCc.cc +++ b/src/HttpHdrCc.cc @@ -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 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; } } -- 2.47.2