]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Remove unused HttpHeaderFieldInfo class (#1515)
authorFrancesco Chemolli <5175948+kinkie@users.noreply.github.com>
Sun, 15 Oct 2023 20:50:14 +0000 (20:50 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Mon, 16 Oct 2023 19:35:54 +0000 (19:35 +0000)
src/HttpHeader.cc
src/HttpHeaderFieldInfo.h [deleted file]
src/HttpHeaderTools.cc
src/Makefile.am

index ba167e4a9003d3e22c005d6e7916b57c13a55ac8..1a52b992c3af14d7b1087adeda23389ff93e7b96 100644 (file)
@@ -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 (file)
index da43d01..0000000
+++ /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_ */
-
index 1e6c52535230a99d5a25127394fdd15ec76d2418..c308a79a6f2ff3ecef53b01f656c5cb25e8e45fb 100644 (file)
@@ -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"
index f187ed46f3c8082ff2f0b60ed293c53078291db4..81e888748bc64f1746ea87994170347099f8ad04 100644 (file)
@@ -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 \