summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibCore/Object.cpp
diff options
context:
space:
mode:
authorsin-ack <sin-ack@users.noreply.github.com>2021-08-30 18:44:59 +0000
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2021-09-02 03:47:47 +0430
commit749f62860e4b8406c4059107bd2c2ba63119d3ce (patch)
treebdb358d6a66ae16a077c5f18e6d579cb54b405eb /Userland/Libraries/LibCore/Object.cpp
parent8ea22121ac8fe0c0e3a073ecd607713f45b34ff3 (diff)
downloadserenity-749f62860e4b8406c4059107bd2c2ba63119d3ce.zip
LibCore: Remove deferred_invoke overload with Object& parameter
This is not necessary because the user can just use this, which is referenced until the deferred invocation is complete.
Diffstat (limited to 'Userland/Libraries/LibCore/Object.cpp')
-rw-r--r--Userland/Libraries/LibCore/Object.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/Userland/Libraries/LibCore/Object.cpp b/Userland/Libraries/LibCore/Object.cpp
index cc5be65d54..088c465515 100644
--- a/Userland/Libraries/LibCore/Object.cpp
+++ b/Userland/Libraries/LibCore/Object.cpp
@@ -162,11 +162,6 @@ void Object::dump_tree(int indent)
});
}
-void Object::deferred_invoke(Function<void(Object&)> invokee)
-{
- deferred_invoke([invokee = move(invokee), this] { invokee(*this); });
-}
-
void Object::deferred_invoke(Function<void()> invokee)
{
Core::deferred_invoke([invokee = move(invokee), strong_this = NonnullRefPtr(*this)] { invokee(); });