From 6eef50f769915b88a26c194c276100e54d547556 Mon Sep 17 00:00:00 2001 From: levlam Date: Sun, 17 Jul 2022 12:11:04 +0300 Subject: [PATCH] Remove unused DelayedClosure private constructors. --- tdactor/td/actor/impl/Event.h | 1 - tdutils/td/utils/Closure.h | 20 +------------------- 2 files changed, 1 insertion(+), 20 deletions(-) diff --git a/tdactor/td/actor/impl/Event.h b/tdactor/td/actor/impl/Event.h index a0e4d39fb..2796c701e 100644 --- a/tdactor/td/actor/impl/Event.h +++ b/tdactor/td/actor/impl/Event.h @@ -8,7 +8,6 @@ #include "td/utils/Closure.h" #include "td/utils/common.h" -#include "td/utils/logging.h" #include "td/utils/StringBuilder.h" #include diff --git a/tdutils/td/utils/Closure.h b/tdutils/td/utils/Closure.h index 9f97c1538..345f1b1f8 100644 --- a/tdutils/td/utils/Closure.h +++ b/tdutils/td/utils/Closure.h @@ -8,9 +8,7 @@ #include "td/utils/common.h" #include "td/utils/invoke.h" -#include "td/utils/logging.h" -#include #include #include #include @@ -104,23 +102,7 @@ class DelayedClosure { } private: - using ArgsStorageT = std::tuple::type...>; - - ArgsStorageT args; - - template - explicit DelayedClosure(const DelayedClosure &other, - std::enable_if_t::value...>::value, int> = 0) - : args(other.args) { - } - - template - explicit DelayedClosure( - const DelayedClosure &other, - std::enable_if_t::value...>::value, int> = 0) { - LOG(FATAL) << "Deleted constructor"; - std::abort(); - } + std::tuple::type...> args; public: auto run(ActorT *actor) -> decltype(mem_call_tuple(actor, std::move(args))) {