From ca2f33c6d025c0c45fb4bc472493290445312de5 Mon Sep 17 00:00:00 2001 From: Henry Wilson Date: Tue, 25 Sep 2018 22:01:05 +0100 Subject: Codechange: Replaced SmallVector::Erase() with std::vector::erase() --- src/core/smallvec_type.hpp | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/core/smallvec_type.hpp') 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 @@ -103,18 +103,6 @@ public: return it == std::vector::end() ? -1 : it - std::vector::begin(); } - /** - * 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::back(); - std::vector::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. -- cgit v1.2.3-54-g00ecf