mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +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
Notes:
sideshowbarker
2024-07-18 05:02:16 +09:00
Author: https://github.com/kleinesfilmroellchen Commit: https://github.com/SerenityOS/serenity/commit/8f4b5774059 Pull-request: https://github.com/SerenityOS/serenity/pull/9638 Reviewed-by: https://github.com/Hendiadyoin1 Reviewed-by: https://github.com/alimpfard
1 changed files with 1 additions and 1 deletions
|
@ -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; }
|
||||
|
||||
|
|
Loading…
Reference in a new issue