mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:48:12 +00:00
LibCore: Remove the Core::Objects::all_objects() list
Nobody actually used the list of all Core::Objects anyway.
This commit is contained in:
parent
405187993a
commit
26647f2b10
4 changed files with 2 additions and 13 deletions
|
@ -15,16 +15,9 @@
|
|||
|
||||
namespace Core {
|
||||
|
||||
IntrusiveList<&Object::m_all_objects_list_node>& Object::all_objects()
|
||||
{
|
||||
static IntrusiveList<&Object::m_all_objects_list_node> objects;
|
||||
return objects;
|
||||
}
|
||||
|
||||
Object::Object(Object* parent)
|
||||
: m_parent(parent)
|
||||
{
|
||||
all_objects().append(*this);
|
||||
if (m_parent)
|
||||
m_parent->add_child(*this);
|
||||
}
|
||||
|
@ -39,7 +32,6 @@ Object::~Object()
|
|||
for (auto& child : children)
|
||||
child->m_parent = nullptr;
|
||||
|
||||
all_objects().remove(*this);
|
||||
stop_timer();
|
||||
if (m_parent)
|
||||
m_parent->remove_child(*this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue