summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenry Wilson <m3henry@googlemail.com>2018-09-21 22:50:12 +0100
committerPeterN <peter@fuzzle.org>2019-03-26 20:15:57 +0000
commit56ae855dc20b27593c9a454d5a09d8f892a6c71f (patch)
tree15cd9caf526c15c92d9bc3cc7ffd91ebc6cac369
parent9cba6f71936207f11ad0d4ed752d82966087fab9 (diff)
downloadopenttd-56ae855dc20b27593c9a454d5a09d8f892a6c71f.tar.xz
Codechange: Removed SmallVector::operator[]
-rw-r--r--src/core/smallvec_type.hpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/core/smallvec_type.hpp b/src/core/smallvec_type.hpp
index 9ce63e3f3..be3ec309c 100644
--- a/src/core/smallvec_type.hpp
+++ b/src/core/smallvec_type.hpp
@@ -292,30 +292,6 @@ public:
assert(index <= std::vector<T>::size());
return this->Begin() + index;
}
-
- /**
- * Get item "number" (const)
- *
- * @param index the position of the item
- * @return the item
- */
- inline const T &operator[](uint index) const
- {
- assert(index < std::vector<T>::size());
- return std::vector<T>::operator[](index);
- }
-
- /**
- * Get item "number"
- *
- * @param index the position of the item
- * @return the item
- */
- inline T &operator[](uint index)
- {
- assert(index < std::vector<T>::size());
- return std::vector<T>::operator[](index);
- }
};