From: Yingxin Cheng Date: Mon, 23 Aug 2021 01:49:58 +0000 (+0800) Subject: crimson/common: remove unused futurize::apply() X-Git-Tag: v17.1.0~1036^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4129f3e43e594f1dd293743519bc73c2222e89c7;p=ceph.git crimson/common: remove unused futurize::apply() Signed-off-by: Yingxin Cheng --- diff --git a/src/crimson/common/errorator.h b/src/crimson/common/errorator.h index 95deda1fcaaa..53879cc9a002 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 ce24e8ffd563..a7477795fce5 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) {