summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorHenry Wilson <m3henry@googlemail.com>2018-09-23 17:16:49 +0100
committerPeterN <peter@fuzzle.org>2019-03-26 20:15:57 +0000
commitf3938fdb838685e76bba78974bb6e90e9afc6e22 (patch)
tree38261fac99ecd7fefa295b3789d026e4c575053b /src/core
parentbad2c2154b97613bd6a045cfe1f05cff876da1e4 (diff)
downloadopenttd-f3938fdb838685e76bba78974bb6e90e9afc6e22.tar.xz
Codechange: Replaced SmallVector::Reset() with std::vector::clear() + shrink_to_fit()
Diffstat (limited to 'src/core')
-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 e78f98a50..7e0abec76 100644
--- a/src/core/smallvec_type.hpp
+++ b/src/core/smallvec_type.hpp
@@ -78,15 +78,6 @@ public:
}
/**
- * Remove all items from the list and free allocated memory.
- */
- inline void Reset()
- {
- std::vector<T>::clear();
- std::vector<T>::shrink_to_fit();
- }
-
- /**
* Append an item and return it.
* @param to_add the number of items to append
* @return pointer to newly allocated item