1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:57:46 +00:00

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

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