diff --git a/folly/coro/BlockingWait.h b/folly/coro/BlockingWait.h index 7fac22c8f36..f743528d534 100644 --- a/folly/coro/BlockingWait.h +++ b/folly/coro/BlockingWait.h @@ -137,12 +137,6 @@ class BlockingWaitPromise final : public BlockingWaitPromiseBase { return final_suspend(); } -#if 0 - void return_value(T& value) noexcept { - result_->emplace(std::ref(value)); - } -#endif - void return_void() { // This should never be reachable. // The coroutine should either have suspended at co_yield or should have @@ -259,24 +253,6 @@ BlockingWaitPromise::get_return_object() noexcept { coroutine_handle>::from_promise(*this)}; } -template < - typename Awaitable, - typename Result = await_result_t, - std::enable_if_t::value, int> = 0> -auto makeBlockingWaitTask(Awaitable&& awaitable) - -> BlockingWaitTask> { - co_return co_await static_cast(awaitable); -} - -template < - typename Awaitable, - typename Result = await_result_t, - std::enable_if_t::value, int> = 0> -auto makeBlockingWaitTask(Awaitable&& awaitable) - -> BlockingWaitTask> { - co_yield co_await static_cast(awaitable); -} - template < typename Awaitable, typename Result = await_result_t,