From: Francesco Chemolli <5175948+kinkie@users.noreply.github.com> Date: Sun, 15 Oct 2023 20:50:14 +0000 (+0000) Subject: Remove unused HttpHeaderFieldInfo class (#1515) X-Git-Tag: SQUID_7_0_1~327 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=df8666975d6a2927ef8a39ada18b9f393b1f449d;p=thirdparty%2Fsquid.git Remove unused HttpHeaderFieldInfo class (#1515) --- diff --git a/src/HttpHeader.cc b/src/HttpHeader.cc index ba167e4a90..1a52b992c3 100644 --- a/src/HttpHeader.cc +++ b/src/HttpHeader.cc @@ -20,7 +20,7 @@ #include "HttpHdrContRange.h" #include "HttpHdrScTarget.h" // also includes HttpHdrSc.h #include "HttpHeader.h" -#include "HttpHeaderFieldInfo.h" +#include "HttpHeaderFieldStat.h" #include "HttpHeaderStat.h" #include "HttpHeaderTools.h" #include "MemBuf.h" diff --git a/src/HttpHeaderFieldInfo.h b/src/HttpHeaderFieldInfo.h deleted file mode 100644 index da43d015cc..0000000000 --- a/src/HttpHeaderFieldInfo.h +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (C) 1996-2023 The Squid Software Foundation and contributors - * - * Squid software is distributed under GPLv2+ license and includes - * contributions from numerous individuals and organizations. - * Please see the COPYING and CONTRIBUTORS files for details. - */ - -#ifndef SQUID_HTTPHEADERFIELDINFO_H_ -#define SQUID_HTTPHEADERFIELDINFO_H_ - -#include "http/RegisteredHeaders.h" -#include "HttpHeaderFieldStat.h" -#include "SquidString.h" - -/// compiled version of HttpHeaderFieldAttrs plus stats. Currently a POD. -class HttpHeaderFieldInfo -{ -public: - HttpHeaderFieldInfo() : id(Http::HdrType::ACCEPT), type(Http::HdrFieldType::ftInvalid) {} - - Http::HdrType id; - String name; - Http::HdrFieldType type; - HttpHeaderFieldStat stat; -}; - -#endif /* SQUID_HTTPHEADERFIELDINFO_H_ */ - diff --git a/src/HttpHeaderTools.cc b/src/HttpHeaderTools.cc index 1e6c525352..c308a79a6f 100644 --- a/src/HttpHeaderTools.cc +++ b/src/HttpHeaderTools.cc @@ -23,7 +23,6 @@ #include "http/Stream.h" #include "HttpHdrContRange.h" #include "HttpHeader.h" -#include "HttpHeaderFieldInfo.h" #include "HttpHeaderTools.h" #include "HttpRequest.h" #include "MemBuf.h" diff --git a/src/Makefile.am b/src/Makefile.am index f187ed46f3..81e888748b 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -256,7 +256,6 @@ squid_SOURCES = \ HttpHdrScTarget.h \ HttpHeader.cc \ HttpHeader.h \ - HttpHeaderFieldInfo.h \ HttpHeaderFieldStat.h \ HttpHeaderMask.h \ HttpHeaderRange.h \ @@ -1028,7 +1027,6 @@ tests_testRock_SOURCES = \ HttpHdrScTarget.cc \ HttpHeader.cc \ HttpHeader.h \ - HttpHeaderFieldInfo.h \ HttpHeaderFieldStat.h \ HttpHeaderTools.cc \ HttpHeaderTools.h \ @@ -1198,7 +1196,6 @@ tests_testUfs_SOURCES = \ HttpHdrScTarget.cc \ HttpHeader.cc \ HttpHeader.h \ - HttpHeaderFieldInfo.h \ HttpHeaderFieldStat.h \ HttpHeaderTools.cc \ HttpHeaderTools.h \ @@ -1371,7 +1368,6 @@ tests_testStore_SOURCES = \ HttpHdrScTarget.cc \ HttpHeader.cc \ HttpHeader.h \ - HttpHeaderFieldInfo.h \ HttpHeaderFieldStat.h \ HttpHeaderTools.cc \ HttpHeaderTools.h \ @@ -1535,7 +1531,6 @@ tests_testDiskIO_SOURCES = \ HttpHdrScTarget.cc \ HttpHeader.cc \ HttpHeader.h \ - HttpHeaderFieldInfo.h \ HttpHeaderFieldStat.h \ HttpHeaderTools.cc \ HttpHeaderTools.h \ @@ -1778,7 +1773,6 @@ tests_test_http_range_SOURCES = \ HttpHdrScTarget.cc \ HttpHeader.cc \ HttpHeader.h \ - HttpHeaderFieldInfo.h \ HttpHeaderFieldStat.h \ HttpHeaderTools.cc \ HttpHeaderTools.h \ @@ -2036,7 +2030,6 @@ tests_testHttpReply_SOURCES = \ HttpHdrScTarget.h \ HttpHeader.cc \ HttpHeader.h \ - HttpHeaderFieldInfo.h \ HttpHeaderFieldStat.h \ HttpHeaderMask.h \ HttpHeaderTools.cc \ @@ -2163,7 +2156,6 @@ tests_testHttpRequest_SOURCES = \ HttpHdrScTarget.cc \ HttpHeader.cc \ HttpHeader.h \ - HttpHeaderFieldInfo.h \ HttpHeaderFieldStat.h \ HttpHeaderTools.cc \ HttpHeaderTools.h \ @@ -2462,7 +2454,6 @@ tests_testCacheManager_SOURCES = \ HttpHdrScTarget.cc \ HttpHeader.cc \ HttpHeader.h \ - HttpHeaderFieldInfo.h \ HttpHeaderFieldStat.h \ HttpHeaderTools.cc \ HttpHeaderTools.h \