aboutsummaryrefslogtreecommitdiffhomepage
path: root/tdactor
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2022-06-27 03:05:24 +0300
committerlevlam <levlam@telegram.org>2022-06-27 03:05:24 +0300
commitcb694ab649352f81431e1e18d1fec1aaaf623d34 (patch)
treed1651e768fef4c20032b6e373fe0bfaecf57353e /tdactor
parent513da45a8f375aa190b77e27430d77a3670ba8c6 (diff)
Remove unused ability of Promise to migrate between schedulers.
Diffstat (limited to 'tdactor')
-rw-r--r--tdactor/td/actor/PromiseFuture.h25
1 files changed, 0 insertions, 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<PromiseInterface<T>> promise_;
};
-template <class T>
-void start_migrate(Promise<T> &promise, int32 sched_id) {
- // promise.start_migrate(sched_id);
-}
-template <class T>
-void finish_migrate(Promise<T> &promise) {
- // promise.finish_migrate();
-}
template <class T = Unit>
class SafePromise {