mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:07:45 +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:
parent
ad6a332268
commit
8f4b577405
1 changed files with 1 additions and 1 deletions
|
@ -214,7 +214,6 @@ public:
|
||||||
m_tail = node;
|
m_tail = node;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
|
||||||
void remove(Iterator& iterator)
|
void remove(Iterator& iterator)
|
||||||
{
|
{
|
||||||
VERIFY(!iterator.is_end());
|
VERIFY(!iterator.is_end());
|
||||||
|
@ -227,6 +226,7 @@ private:
|
||||||
delete iterator.m_node;
|
delete iterator.m_node;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private:
|
||||||
Node* head() { return m_head; }
|
Node* head() { return m_head; }
|
||||||
const Node* head() const { return m_head; }
|
const Node* head() const { return m_head; }
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue