]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Remove unused SBufCaseInsensitiveLess (#385)
authorAmos Jeffries <yadij@users.noreply.github.com>
Tue, 2 Apr 2019 07:34:00 +0000 (07:34 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Wed, 3 Apr 2019 01:30:09 +0000 (01:30 +0000)
This class has been replaced by a proper hash in the
sbuf/Algorithms.h current code.

If this is needed in future we can define a lambda instead.

src/base/LookupTable.h

index 45026d385f89ae9ac905a596c0c09c5e1d925794..2bba29ed123b04fa1eb8c7650357e5403bee8f76 100644 (file)
@@ -47,13 +47,6 @@ struct LookupTableRecord
  *
  */
 
-class SBufCaseInsensitiveLess : public std::binary_function<SBuf, SBuf, bool> {
-public:
-    bool operator() (const SBuf &x, const SBuf &y) const {
-        return x.caseCmp(y) < 0;
-    }
-};
-
 template<typename EnumType, typename RecordType = LookupTableRecord<EnumType>, typename Hasher = CaseInsensitiveSBufHash >
 class LookupTable
 {