mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 06:14:58 +00:00
LibCore: Remove unused Core::Object::dump_tree()
This commit is contained in:
parent
887dfd72b9
commit
bdf696e488
2 changed files with 0 additions and 18 deletions
|
@ -136,22 +136,6 @@ void Object::stop_timer()
|
|||
m_timer_id = 0;
|
||||
}
|
||||
|
||||
void Object::dump_tree(int indent)
|
||||
{
|
||||
for (int i = 0; i < indent; ++i) {
|
||||
out(" ");
|
||||
}
|
||||
out("{}{{{:p}}}", class_name(), this);
|
||||
if (!name().is_null())
|
||||
out(" {}", name());
|
||||
outln();
|
||||
|
||||
for_each_child([&](auto& child) {
|
||||
child.dump_tree(indent + 2);
|
||||
return IterationDecision::Continue;
|
||||
});
|
||||
}
|
||||
|
||||
void Object::deferred_invoke(Function<void()> invokee)
|
||||
{
|
||||
Core::deferred_invoke([invokee = move(invokee), strong_this = NonnullRefPtr(*this)] { invokee(); });
|
||||
|
|
|
@ -126,8 +126,6 @@ public:
|
|||
|
||||
void set_event_filter(Function<bool(Core::Event&)>);
|
||||
|
||||
void dump_tree(int indent = 0);
|
||||
|
||||
void deferred_invoke(Function<void()>);
|
||||
|
||||
void dispatch_event(Core::Event&, Object* stay_within = nullptr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue