summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorHenry Wilson <m3henry@googlemail.com>2018-09-24 20:18:16 +0100
committerPeterN <peter@fuzzle.org>2019-03-26 20:15:57 +0000
commit9b5cc73f3eeefdad439b2d93d872e621891f2b38 (patch)
tree48928883b69441238520568b4b0a2dcd40ac6019 /src/core
parent846095224044b39ddd3249b6ea072e486ba1fe38 (diff)
downloadopenttd-9b5cc73f3eeefdad439b2d93d872e621891f2b38.tar.xz
Codechange: Replaced SmallVector::ErasePreservingOrder(it, count) with std::vector::erase()
Diffstat (limited to 'src/core')
-rw-r--r--src/core/smallvec_type.hpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/core/smallvec_type.hpp b/src/core/smallvec_type.hpp
index 1c713470f..7d856ca9b 100644
--- a/src/core/smallvec_type.hpp
+++ b/src/core/smallvec_type.hpp
@@ -149,16 +149,6 @@ public:
}
/**
- * Remove items from the vector while preserving the order of other items.
- * @param item First item to remove.
- * @param count Number of consecutive items to remove.
- */
- inline void ErasePreservingOrder(T *item, uint count = 1)
- {
- this->ErasePreservingOrder(item - this->Begin(), count);
- }
-
- /**
* 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