浏览代码

LibCore: Remove unused Core::Object::dump_tree()

Andreas Kling 2 年之前
父节点
当前提交
bdf696e488
共有 2 个文件被更改,包括 0 次插入18 次删除
  1. 0 16
      Userland/Libraries/LibCore/Object.cpp
  2. 0 2
      Userland/Libraries/LibCore/Object.h

+ 0 - 16
Userland/Libraries/LibCore/Object.cpp

@@ -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(); });

+ 0 - 2
Userland/Libraries/LibCore/Object.h

@@ -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);