]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/string_view.h
Bug #807012 also involves package dependencies :/.
[apt.git] / apt-pkg / contrib / string_view.h
index c504edd27717178920875a34c421399d03601d6c..e0aff3dca78e344617632a14d364ed28059c86c4 100644 (file)
@@ -112,18 +112,6 @@ public:
     constexpr size_t length() const { return size_; }
 };
 
-/**
- * \brief Faster comparison for string views (compare size before data)
- *
- * Still stable, but faster than the normal ordering. */
-static inline int StringViewCompareFast(StringView a, StringView b) {
-    if (a.size() != b.size())
-        return a.size() - b.size();
-
-    return memcmp(a.data(), b.data(), a.size());
-}
-
-
 }
 
 inline bool operator ==(const char *other, APT::StringView that);