AK: Make SinglyLinkedList::remove() public

This is a nice API to have outside of the class, and it is convenient
for LibDSP.
This commit is contained in:
kleines Filmröllchen 2021-07-07 01:36:51 +02:00 committed by Ali Mohammad Pur
parent ad6a332268
commit 8f4b577405
Notes: sideshowbarker 2024-07-18 05:02:16 +09:00

View file

@ -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; }