Nuke Future<void> (folly/futures)
[folly.git] / folly / futures / SharedPromise.h
index 0c8fcd9a747d86e59f132d1c9f2b72824b30b1f5..1d5670cde2efa5f4bc27f4712de08bb159102edb 100644 (file)
@@ -81,13 +81,6 @@ public:
   /// handled.
   void setInterruptHandler(std::function<void(exception_wrapper const&)>);
 
-  /// Fulfill this SharedPromise<void>
-  template <class B = T>
-  typename std::enable_if<std::is_void<B>::value, void>::type
-  setValue() {
-    setTry(Try<T>());
-  }
-
   /// Sugar to fulfill this SharedPromise<Unit>
   template <class B = T>
   typename std::enable_if<std::is_same<Unit, B>::value, void>::type