forked from mirror/OpenTTD
Codechange: Replaced SmallVector::Reset() with std::vector::clear() + shrink_to_fit()
This commit is contained in:
@@ -77,15 +77,6 @@ public:
|
||||
std::vector<T>::operator=(other);
|
||||
}
|
||||
|
||||
/**
|
||||
* 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
|
||||
|
Reference in New Issue
Block a user