mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-28 04:08:08 +00:00
LibCore: Add Object::remove_all_children()
This commit is contained in:
committed by
Andreas Kling
parent
ddaedbca87
commit
e955c024b2
@@ -130,6 +130,12 @@ void Object::remove_child(Object& object)
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
||||
void Object::remove_all_children()
|
||||
{
|
||||
while (!m_children.is_empty())
|
||||
m_children.first().remove_from_parent();
|
||||
}
|
||||
|
||||
void Object::timer_event(Core::TimerEvent&)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user