From 410b81537cd28e133acfc423efc88627f4454676 Mon Sep 17 00:00:00 2001 From: glx Date: Sat, 13 Apr 2019 19:55:31 +0200 Subject: Fix 801cbea9c: operator< is not always the best idea Also removes unused and anyway broken SmallMap::SortByKey() function. --- src/core/smallmap_type.hpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/core') diff --git a/src/core/smallmap_type.hpp b/src/core/smallmap_type.hpp index 7581fc6a7..21cc0e76f 100644 --- a/src/core/smallmap_type.hpp +++ b/src/core/smallmap_type.hpp @@ -164,16 +164,6 @@ struct SmallMap : std::vector > { n.first = key; return n.second; } - - inline void SortByKey() - { - std::sort(std::vector::begin(), std::vector::end()); - } - - bool operator< (const Pair &other) const - { - return (*this).first < other.first; - } }; #endif /* SMALLMAP_TYPE_HPP */ -- cgit v1.2.3-54-g00ecf