From b7954d2ef5c87b4583ae408cefb421baa7be804a Mon Sep 17 00:00:00 2001 From: Alexey Spiridonov Date: Tue, 7 Jan 2025 18:29:18 -0800 Subject: [PATCH] Remove unused detail func `makeBlockingWaitTask` Reviewed By: iahs Differential Revision: D67889890 fbshipit-source-id: 832b1cf80b3c4d8c236b9c873d1a5743c96c5a44 --- folly/coro/BlockingWait.h | 24 ------------------------ 1 file changed, 24 deletions(-) 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,