From: Xuehan Xu Date: Tue, 27 Feb 2024 04:49:41 +0000 (+0800) Subject: crimson/common/errorator: drop discard_all X-Git-Tag: v20.0.0~1925^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0043fa92ab2435b4237d0d79112ab397730a8e91;p=ceph.git crimson/common/errorator: drop discard_all Signed-off-by: Xuehan Xu --- diff --git a/src/crimson/common/errorator.h b/src/crimson/common/errorator.h index 7113ccfa146..b87a7fce8fe 100644 --- a/src/crimson/common/errorator.h +++ b/src/crimson/common/errorator.h @@ -933,14 +933,6 @@ public: } }; - struct discard_all { - template ...> - void operator()(ErrorT&&) { - static_assert(contains_once_v>, - "discarding disallowed ErrorT"); - } - }; - template static future make_errorator_future(seastar::future&& fut) { return std::move(fut); @@ -1315,12 +1307,6 @@ namespace ct_error { } }; - struct discard_all { - template - void operator()(ErrorT&&) { - } - }; - class assert_all { const char* const msg = nullptr; std::function pre_assert;