diff options
author | glx <glx@openttd.org> | 2019-04-13 19:55:31 +0200 |
---|---|---|
committer | glx22 <glx22@users.noreply.github.com> | 2019-04-13 21:05:25 +0200 |
commit | 410b81537cd28e133acfc423efc88627f4454676 (patch) | |
tree | 6c0a63682771428d57978e37327fdb18ab79428d /src/core | |
parent | 3bbd7ea2c1a7f3631362805da76848112f7a606d (diff) | |
download | openttd-410b81537cd28e133acfc423efc88627f4454676.tar.xz |
Fix 801cbea9c: operator< is not always the best idea
Also removes unused and anyway broken SmallMap::SortByKey() function.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/smallmap_type.hpp | 10 |
1 files changed, 0 insertions, 10 deletions
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<SmallPair<T, U> > { n.first = key; return n.second; } - - inline void SortByKey() - { - std::sort(std::vector<Pair>::begin(), std::vector<Pair>::end()); - } - - bool operator< (const Pair &other) const - { - return (*this).first < other.first; - } }; #endif /* SMALLMAP_TYPE_HPP */ |