summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenry Wilson <m3henry@googlemail.com>2019-02-20 18:53:57 +0000
committerPeterN <peter@fuzzle.org>2019-03-26 20:15:57 +0000
commite0c58bf5ee0f3f4d0563a04de315c09b37f74c6e (patch)
tree8ad4dd6ba82bd940d4d2aaff42502997fd016195
parenta0f36a50e6324f570985f5010eb0543ec0673aeb (diff)
downloadopenttd-e0c58bf5ee0f3f4d0563a04de315c09b37f74c6e.tar.xz
Codechange: Removed SmallVector::Insert()
-rw-r--r--src/core/smallvec_type.hpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/core/smallvec_type.hpp b/src/core/smallvec_type.hpp
index 5961a9698..e0596e338 100644
--- a/src/core/smallvec_type.hpp
+++ b/src/core/smallvec_type.hpp
@@ -67,20 +67,6 @@ public:
~SmallVector() = default;
/**
- * Insert a new item at a specific position into the vector, moving all following items.
- * @param item Position at which the new item should be inserted
- * @return pointer to the new item
- */
- inline T *Insert(T *item)
- {
- assert(item >= this->Begin() && item <= this->End());
-
- size_t start = item - this->Begin();
- std::vector<T>::insert(std::vector<T>::begin() + start);
- return this->Begin() + start;
- }
-
- /**
* Search for the first occurrence of an item.
* The '!=' operator of T is used for comparison.
* @param item Item to search for