From 4129f3e43e594f1dd293743519bc73c2222e89c7 Mon Sep 17 00:00:00 2001 From: Yingxin Cheng Date: Mon, 23 Aug 2021 09:49:58 +0800 Subject: [PATCH] crimson/common: remove unused futurize::apply() Signed-off-by: Yingxin Cheng --- src/crimson/common/errorator.h | 23 ----------------------- src/crimson/common/interruptible_future.h | 19 ------------------- 2 files changed, 42 deletions(-) diff --git a/src/crimson/common/errorator.h b/src/crimson/common/errorator.h index 95deda1fcaaa7..53879cc9a002c 100644 --- a/src/crimson/common/errorator.h +++ b/src/crimson/common/errorator.h @@ -964,16 +964,6 @@ private: public: using type = ::crimson::errorator::future; - template - static type apply(Func&& func, std::tuple&& args) { - try { - return ::seastar::futurize_apply(std::forward(func), - std::forward>(args)); - } catch (...) { - return make_exception_future(std::current_exception()); - } - } - template static type invoke(Func&& func, Args&&... args) { try { @@ -1007,19 +997,6 @@ private: using type = ::crimson::interruptible::interruptible_future_detail< InterruptCond, typename futurize::type>; - template - static type apply(Func&& func, std::tuple&& args) { - try { - return ::seastar::futurize_apply(std::forward(func), - std::forward>(args)); - } catch (...) { - return seastar::futurize< - ::crimson::interruptible::interruptible_future_detail< - InterruptCond, FutureType>>::make_exception_future( - std::current_exception()); - } - } - template static type invoke(Func&& func, Args&&... args) { try { diff --git a/src/crimson/common/interruptible_future.h b/src/crimson/common/interruptible_future.h index ce24e8ffd563a..a7477795fce5c 100644 --- a/src/crimson/common/interruptible_future.h +++ b/src/crimson/common/interruptible_future.h @@ -1003,12 +1003,6 @@ public: using type = interruptible_future_detail< InterruptCond, typename seastar::futurize::type>; - template - static type apply(Func&& func, std::tuple&& args) noexcept { - return seastar::futurize::apply(std::forward(func), - std::forward>(args)); - } - template static type invoke(Func&& func, Args&&... args) noexcept { return seastar::futurize::invoke( @@ -1021,13 +1015,6 @@ public: struct futurize> { using type = interruptible_future_detail; - template - static type apply(Func&& func, std::tuple&& args) noexcept { - return seastar::futurize::apply( - std::forward(func), - std::forward>(args)); - } - template static type invoke(Func&& func, Args&&... args) noexcept { return seastar::futurize::invoke( @@ -1039,12 +1026,6 @@ public: template using futurize_t = typename futurize::type; - template - static auto futurize_apply(Func&& func, std::tuple&& args) noexcept { - using futurator = futurize>; - return futurator::apply(std::forward(func), std::move(args)); - } - template [[gnu::always_inline]] static auto do_for_each(Container& c, AsyncAction&& action) { -- 2.39.5