summaryrefslogtreecommitdiff
path: root/src/core/smallvec_type.hpp
diff options
context:
space:
mode:
authorHenry Wilson <m3henry@googlemail.com>2018-09-23 16:43:00 +0100
committerPeterN <peter@fuzzle.org>2019-03-26 20:15:57 +0000
commitbad2c2154b97613bd6a045cfe1f05cff876da1e4 (patch)
tree2c3281a3c95ca1601966780e42847f3225830a5d /src/core/smallvec_type.hpp
parenta690936ed75e96627be0e2ecafee2360a71e8d3c (diff)
downloadopenttd-bad2c2154b97613bd6a045cfe1f05cff876da1e4.tar.xz
Codechange: Replaced SmallVector::Resize() with std::vector::resize()
Diffstat (limited to 'src/core/smallvec_type.hpp')
-rw-r--r--src/core/smallvec_type.hpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/core/smallvec_type.hpp b/src/core/smallvec_type.hpp
index 600b7ea26..e78f98a50 100644
--- a/src/core/smallvec_type.hpp
+++ b/src/core/smallvec_type.hpp
@@ -98,15 +98,6 @@ public:
}
/**
- * Set the size of the vector, effectively truncating items from the end or appending uninitialised ones.
- * @param num_items Target size.
- */
- inline void Resize(uint num_items)
- {
- std::vector<T>::resize(num_items);
- }
-
- /**
* 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