diff options
author | Henry Wilson <m3henry@googlemail.com> | 2018-09-25 21:01:56 +0100 |
---|---|---|
committer | PeterN <peter@fuzzle.org> | 2019-03-26 20:15:57 +0000 |
commit | aa7ca7fe64af51c2cd2400e3dec477dfbddadae3 (patch) | |
tree | 2b80f868a6e3e9df699f3b96bffb41b7b6f84125 /src/core | |
parent | bc7dcaffca553b227fe895dc185e657d110c5ffe (diff) | |
download | openttd-aa7ca7fe64af51c2cd2400e3dec477dfbddadae3.tar.xz |
Codechange: Replaced SmallVector::Get(n) non-const with std::vector::data() + n
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 81b9cf7ee..a682697b3 100644 --- a/src/core/smallvec_type.hpp +++ b/src/core/smallvec_type.hpp @@ -180,19 +180,6 @@ public: assert(index <= std::vector<T>::size()); return this->Begin() + index; } - - /** - * Get the pointer to item "number" - * - * @param index the position of the item - * @return the pointer to the item - */ - inline T *Get(uint index) - { - /* Allow access to the 'first invalid' item */ - assert(index <= std::vector<T>::size()); - return this->Begin() + index; - } }; |