nuke executeWith
[folly.git] / folly / wangle / Future-inl.h
index 933cbe6eae1c6876f6de0c531aa2ce45667fa375..47bede0eaf7df5334f63649b03393cbebbf22ea0 100644 (file)
@@ -199,22 +199,6 @@ inline Future<T> Future<T>::via(Executor* executor) {
   return f;
 }
 
-template <class T>
-template <typename Executor>
-inline void Future<T>::executeWith(
-    Executor* executor, Promise<T>&& cont_promise) {
-  throwIfInvalid();
-
-  folly::MoveWrapper<Promise<T>> p(std::move(cont_promise));
-
-  setContinuation([executor, p](Try<T>&& t) mutable {
-      folly::MoveWrapper<Try<T>> tt(std::move(t));
-      executor->add([p, tt]() mutable {
-          p->fulfilTry(std::move(*tt));
-        });
-    });
-}
-
 template <class T>
 bool Future<T>::isReady() const {
   throwIfInvalid();