1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:07:36 +00:00

AK: Remove unused Vector::shift_left().

I was using this for a makeshift queue, but now there is AK::Queue.
This commit is contained in:
Andreas Kling 2019-07-21 21:46:03 +02:00
parent af81645a2a
commit facfaa50df

View file

@ -407,19 +407,6 @@ public:
m_capacity = new_capacity; m_capacity = new_capacity;
} }
void shift_left(int count)
{
ASSERT(count <= m_size);
if (count == m_size) {
clear();
return;
}
for (int i = 0; i < m_size - count; ++i) {
at(i) = move(at(i + count));
}
m_size -= count;
}
void resize(int new_size) void resize(int new_size)
{ {
if (new_size == size()) if (new_size == size())