summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/string_view.h
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2017-01-27 02:05:40 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2017-01-27 02:05:40 -0800
commit9fa247dc9ba2aa28ae564e96cba5b2b23bcac91b (patch)
tree03438a4e90c5c61952f0fb4ac84b646ba6a42e21 /apt-pkg/contrib/string_view.h
parentc65bdf3bf1390cee509fd850e006c0faebf252ab (diff)
Bug #807012 also involves package dependencies :/.
Diffstat (limited to 'apt-pkg/contrib/string_view.h')
-rw-r--r--apt-pkg/contrib/string_view.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/apt-pkg/contrib/string_view.h b/apt-pkg/contrib/string_view.h
index c504edd27..e0aff3dca 100644
--- a/apt-pkg/contrib/string_view.h
+++ b/apt-pkg/contrib/string_view.h
@@ -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);