Skip to content

Commit dbd76bc

Browse files
yadijsquid-anubis
authored andcommitted
Remove unused ccHeaderStats global (#2038)
1 parent 13dbfb1 commit dbd76bc

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/HttpHdrCc.cc

-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#include "base/LookupTable.h"
1414
#include "HttpHdrCc.h"
1515
#include "HttpHeader.h"
16-
#include "HttpHeaderFieldStat.h"
1716
#include "HttpHeaderStat.h"
1817
#include "HttpHeaderTools.h"
1918
#include "sbuf/SBuf.h"
@@ -80,8 +79,6 @@ ccNameByType(const RawId rawId)
8079
return std::nullopt;
8180
}
8281

83-
std::vector<HttpHeaderFieldStat> ccHeaderStats(HttpHdrCcType::CC_ENUM_END);
84-
8582
/// used to walk a table of http_header_cc_type structs
8683
static HttpHdrCcType &
8784
operator++ (HttpHdrCcType &aHeader)
@@ -144,7 +141,6 @@ HttpHdrCc::parse(const String & str)
144141
if (isSet(type)) {
145142
if (type != HttpHdrCcType::CC_OTHER) {
146143
debugs(65, 2, "hdr cc: ignoring duplicate cache-directive: near '" << item << "' in '" << str << "'");
147-
++ ccHeaderStats[type].repCount;
148144
continue;
149145
}
150146
}

0 commit comments

Comments
 (0)