summaryrefslogtreecommitdiff
path: root/AK
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-04-14 04:33:43 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-04-14 04:33:43 +0200
commitc2093ad994234552c289ff422f5816edc9a87da6 (patch)
tree616f163d0412db6599be0349a70b0c88b8a60c28 /AK
parentf1b58d8d8c2707a4f4c12428891d09be79f02aca (diff)
downloadserenity-c2093ad994234552c289ff422f5816edc9a87da6.zip
WindowServer: Move the CPU monitor thingy to its own class.
Diffstat (limited to 'AK')
-rw-r--r--AK/CircularQueue.h13
1 files changed, 2 insertions, 11 deletions
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 <AK/Assertions.h>
+#include <AK/Types.h>
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;