X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;ds=sidebyside;f=folly%2Fwangle%2FFuture-inl.h;h=47bede0eaf7df5334f63649b03393cbebbf22ea0;hb=ad710a5699933b02d647adfd416ffc2ac93b7807;hp=933cbe6eae1c6876f6de0c531aa2ce45667fa375;hpb=57a00d50dd2db403ab059490fcc73ae27ecb79d8;p=folly.git diff --git a/folly/wangle/Future-inl.h b/folly/wangle/Future-inl.h index 933cbe6e..47bede0e 100644 --- a/folly/wangle/Future-inl.h +++ b/folly/wangle/Future-inl.h @@ -199,22 +199,6 @@ inline Future Future::via(Executor* executor) { return f; } -template -template -inline void Future::executeWith( - Executor* executor, Promise&& cont_promise) { - throwIfInvalid(); - - folly::MoveWrapper> p(std::move(cont_promise)); - - setContinuation([executor, p](Try&& t) mutable { - folly::MoveWrapper> tt(std::move(t)); - executor->add([p, tt]() mutable { - p->fulfilTry(std::move(*tt)); - }); - }); -} - template bool Future::isReady() const { throwIfInvalid();