mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:27:45 +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:
parent
af81645a2a
commit
facfaa50df
1 changed files with 0 additions and 13 deletions
13
AK/Vector.h
13
AK/Vector.h
|
@ -407,19 +407,6 @@ public:
|
|||
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)
|
||||
{
|
||||
if (new_size == size())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue