diff options
author | Henry Wilson <m3henry@googlemail.com> | 2018-09-25 21:20:24 +0100 |
---|---|---|
committer | PeterN <peter@fuzzle.org> | 2019-03-26 20:15:57 +0000 |
commit | 097328c3d73520834b4ef801945c4f57f9eca0cd (patch) | |
tree | b128c52ecba8fecc8bec436b5517faf0f976d5d2 /src/core | |
parent | aa7ca7fe64af51c2cd2400e3dec477dfbddadae3 (diff) | |
download | openttd-097328c3d73520834b4ef801945c4f57f9eca0cd.tar.xz |
Codechange: Replaced SmallVector::Get() const with std alternatives
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/smallvec_type.hpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/core/smallvec_type.hpp b/src/core/smallvec_type.hpp index a682697b3..1ec336b73 100644 --- a/src/core/smallvec_type.hpp +++ b/src/core/smallvec_type.hpp @@ -167,19 +167,6 @@ public: { return std::vector<T>::data() + std::vector<T>::size(); } - - /** - * Get the pointer to item "number" (const) - * - * @param index the position of the item - * @return the pointer to the item - */ - inline const T *Get(uint index) const - { - /* Allow access to the 'first invalid' item */ - assert(index <= std::vector<T>::size()); - return this->Begin() + index; - } }; |