diff options
author | Henry Wilson <m3henry@googlemail.com> | 2018-09-25 22:01:05 +0100 |
---|---|---|
committer | PeterN <peter@fuzzle.org> | 2019-03-26 20:15:57 +0000 |
commit | ca2f33c6d025c0c45fb4bc472493290445312de5 (patch) | |
tree | cf39f3f0a815778049c037d80f0b86a11f1af665 /src/core/smallvec_type.hpp | |
parent | 097328c3d73520834b4ef801945c4f57f9eca0cd (diff) | |
download | openttd-ca2f33c6d025c0c45fb4bc472493290445312de5.tar.xz |
Codechange: Replaced SmallVector::Erase() with std::vector::erase()
Diffstat (limited to 'src/core/smallvec_type.hpp')
-rw-r--r-- | src/core/smallvec_type.hpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/core/smallvec_type.hpp b/src/core/smallvec_type.hpp index 1ec336b73..b989d44c5 100644 --- a/src/core/smallvec_type.hpp +++ b/src/core/smallvec_type.hpp @@ -104,18 +104,6 @@ public: } /** - * Removes given item from this vector - * @param item item to remove - * @note it has to be pointer to item in this map. It is overwritten by the last item. - */ - inline void Erase(T *item) - { - assert(item >= this->Begin() && item < this->End()); - *item = std::vector<T>::back(); - std::vector<T>::pop_back(); - } - - /** * Tests whether a item is present in the vector, and appends it to the end if not. * The '!=' operator of T is used for comparison. * @param item Item to test for |