From cb694ab649352f81431e1e18d1fec1aaaf623d34 Mon Sep 17 00:00:00 2001 From: levlam Date: Mon, 27 Jun 2022 03:05:24 +0300 Subject: [PATCH] Remove unused ability of Promise to migrate between schedulers. --- tdactor/td/actor/PromiseFuture.h | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/tdactor/td/actor/PromiseFuture.h b/tdactor/td/actor/PromiseFuture.h index 04b0509ed..8f0310bfe 100644 --- a/tdactor/td/actor/PromiseFuture.h +++ b/tdactor/td/actor/PromiseFuture.h @@ -60,11 +60,6 @@ class PromiseInterface { virtual bool is_canceled() const { return false; } - - virtual void start_migrate(int32 sched_id) { - } - virtual void finish_migrate() { - } }; namespace detail { @@ -236,18 +231,6 @@ class Promise { void reset() { promise_.reset(); } - void start_migrate(int32 sched_id) { - if (!promise_) { - return; - } - promise_->start_migrate(sched_id); - } - void finish_migrate() { - if (!promise_) { - return; - } - promise_->finish_migrate(); - } bool is_cancellable() const { if (!promise_) { return false; @@ -283,14 +266,6 @@ class Promise { unique_ptr> promise_; }; -template -void start_migrate(Promise &promise, int32 sched_id) { - // promise.start_migrate(sched_id); -} -template -void finish_migrate(Promise &promise) { - // promise.finish_migrate(); -} template class SafePromise {