From c2093ad994234552c289ff422f5816edc9a87da6 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 14 Apr 2019 04:33:43 +0200 Subject: WindowServer: Move the CPU monitor thingy to its own class. --- AK/CircularQueue.h | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'AK') diff --git a/AK/CircularQueue.h b/AK/CircularQueue.h index 7eb1ebf594..cd97965d48 100644 --- a/AK/CircularQueue.h +++ b/AK/CircularQueue.h @@ -1,7 +1,7 @@ #pragma once -#include "Assertions.h" -#include "Types.h" +#include +#include namespace AK { @@ -19,15 +19,6 @@ public: int capacity() const { return Capacity; } - void dump() const - { - kprintf("CircularQueue<%zu>:\n", Capacity); - kprintf(" size: %zu\n", m_size); - for (int i = 0; i < Capacity; ++i) { - kprintf(" [%zu] %d %c\n", i, m_elements[i], i == m_head ? '*' : ' '); - } - } - void enqueue(const T& t) { m_elements[(m_head + m_size) % Capacity] = t; -- cgit v1.2.3