forked from mirror/OpenTTD
Codechange: Replaced SmallVector::ErasePreservingOrder(it, count) with std::vector::erase()
This commit is contained in:
@@ -148,16 +148,6 @@ public:
|
||||
std::vector<T>::erase(it, it + count);
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove items from the vector while preserving the order of other items.
|
||||
* @param item First item to remove.
|
||||
* @param count Number of consecutive items to remove.
|
||||
*/
|
||||
inline void ErasePreservingOrder(T *item, uint count = 1)
|
||||
{
|
||||
this->ErasePreservingOrder(item - this->Begin(), count);
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests whether a item is present in the vector, and appends it to the end if not.
|
||||
* The '!=' operator of T is used for comparison.
|
||||
|
Reference in New Issue
Block a user