From 8f4b5774059bbf283915b73d35104167cb8090f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?kleines=20Filmr=C3=B6llchen?= Date: Wed, 7 Jul 2021 01:36:51 +0200 Subject: [PATCH] AK: Make SinglyLinkedList::remove() public This is a nice API to have outside of the class, and it is convenient for LibDSP. --- AK/SinglyLinkedList.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AK/SinglyLinkedList.h b/AK/SinglyLinkedList.h index 6ecdbe32bb..84f60d141c 100644 --- a/AK/SinglyLinkedList.h +++ b/AK/SinglyLinkedList.h @@ -214,7 +214,6 @@ public: m_tail = node; } -private: void remove(Iterator& iterator) { VERIFY(!iterator.is_end()); @@ -227,6 +226,7 @@ private: delete iterator.m_node; } +private: Node* head() { return m_head; } const Node* head() const { return m_head; }