Fix 801cbea9c: operator< is not always the best idea

Also removes unused and anyway broken SmallMap::SortByKey() function.
This commit is contained in:
glx
2019-04-13 19:55:31 +02:00
committed by glx22
parent 3bbd7ea2c1
commit 410b81537c
3 changed files with 4 additions and 16 deletions

View File

@@ -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 */