From aa97336963aea7e34e21c6fc2e5abfeed9246088 Mon Sep 17 00:00:00 2001 From: levlam Date: Sun, 26 Jun 2022 22:41:57 +0300 Subject: [PATCH] Remove unused class Ignore. --- tdactor/td/actor/PromiseFuture.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/tdactor/td/actor/PromiseFuture.h b/tdactor/td/actor/PromiseFuture.h index 157381311..c27de952b 100644 --- a/tdactor/td/actor/PromiseFuture.h +++ b/tdactor/td/actor/PromiseFuture.h @@ -99,12 +99,6 @@ struct DropResult> { template using drop_result_t = typename DropResult::type; -struct Ignore { - void operator()(Status &&error) { - error.ignore(); - } -}; - template class LambdaPromise : public PromiseInterface { enum class State : int32 { Empty, Ready, Complete }; @@ -658,8 +652,6 @@ FutureActor send_promise(ActorId actor_id, ResultT (ActorBT::*func)( class PromiseCreator { public: - using Ignore = detail::Ignore; - template >> static Promise lambda(OkT &&ok) { return Promise(td::make_unique>>(std::forward(ok)));