]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/interruptible_future: remove unused code 42882/head
authorYingxin Cheng <yingxin.cheng@intel.com>
Mon, 23 Aug 2021 01:50:33 +0000 (09:50 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Tue, 24 Aug 2021 01:39:57 +0000 (09:39 +0800)
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/crimson/common/interruptible_future.h

index a7477795fce5cf33cd1c10bae4216a04f2ab31ab..e654468ab24c07a151e4bbdf4d491f19b978ee2e 100644 (file)
@@ -973,9 +973,6 @@ template <typename InterruptCond>
 struct interruptor
 {
 public:
-  template <typename T>
-  using future = interruptible_future<InterruptCond, T>;
-
   template <typename FutureType>
   [[gnu::always_inline]]
   static interruptible_future_detail<InterruptCond, FutureType>
@@ -1002,25 +999,11 @@ public:
   struct futurize {
     using type = interruptible_future_detail<
       InterruptCond, typename seastar::futurize<T>::type>;
-
-    template <typename Func, typename... Args>
-    static type invoke(Func&& func, Args&&... args) noexcept {
-      return seastar::futurize<T>::invoke(
-       std::forward<Func>(func),
-       std::forward<Args>(args)...);
-    }
   };
 
   template <typename FutureType>
   struct futurize<interruptible_future_detail<InterruptCond, FutureType>> {
     using type = interruptible_future_detail<InterruptCond, FutureType>;
-
-    template <typename Func, typename... Args>
-    static type invoke(Func&& func, Args&&... args) noexcept {
-      return seastar::futurize<FutureType>::invoke(
-         std::forward<Func>(func),
-         std::forward<Args>(args)...);
-    }
   };
 
   template <typename T>