]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/common/errorator: drop discard_all 55735/head
authorXuehan Xu <xuxuehan@qianxin.com>
Tue, 27 Feb 2024 04:49:41 +0000 (12:49 +0800)
committerXuehan Xu <xuxuehan@qianxin.com>
Sat, 23 Mar 2024 08:17:43 +0000 (16:17 +0800)
Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
src/crimson/common/errorator.h

index 7113ccfa1463bd83a834847f7113f8e81dcf1f93..b87a7fce8fe6d21ff42ee6e122aa44a1ddea45bd 100644 (file)
@@ -933,14 +933,6 @@ public:
     }
   };
 
-  struct discard_all {
-    template <class ErrorT, EnableIf<ErrorT>...>
-    void operator()(ErrorT&&) {
-      static_assert(contains_once_v<std::decay_t<ErrorT>>,
-                    "discarding disallowed ErrorT");
-    }
-  };
-
   template <typename T>
   static future<T> make_errorator_future(seastar::future<T>&& fut) {
     return std::move(fut);
@@ -1315,12 +1307,6 @@ namespace ct_error {
     }
   };
 
-  struct discard_all {
-    template <class ErrorT>
-    void operator()(ErrorT&&) {
-    }
-  };
-
   class assert_all {
     const char* const msg = nullptr;
     std::function<void()> pre_assert;