From facfaa50df2f779867351c7d096772bf9c5c4357 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 21 Jul 2019 21:46:03 +0200 Subject: [PATCH] AK: Remove unused Vector::shift_left(). I was using this for a makeshift queue, but now there is AK::Queue. --- AK/Vector.h | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/AK/Vector.h b/AK/Vector.h index 1e2dc53bb3..646a767bd1 100644 --- a/AK/Vector.h +++ b/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())