From 8c45891c80081c66be7b2d2c9d966ab6580f34d2 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 3 Nov 2019 12:33:51 +0100 Subject: [PATCH] AK: Allow overriding the Queue segment size with a template parameter --- AK/Queue.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/AK/Queue.h b/AK/Queue.h index 157e07ea07e..c75898cb96e 100644 --- a/AK/Queue.h +++ b/AK/Queue.h @@ -6,7 +6,7 @@ namespace AK { -template +template class Queue { public: Queue() { } @@ -54,8 +54,6 @@ public: } private: - static const int segment_size = 1000; - SinglyLinkedList>> m_segments; int m_index_into_first { 0 }; int m_size { 0 };