From baaaccdd1a4a19889840858ff8b0a9bdca116572 Mon Sep 17 00:00:00 2001 From: Xuehan Xu Date: Tue, 27 Feb 2024 12:49:41 +0800 Subject: [PATCH] crimson/common/errorator: drop discard_all Signed-off-by: Xuehan Xu (cherry picked from commit 0043fa92ab2435b4237d0d79112ab397730a8e91) --- src/crimson/common/errorator.h | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/crimson/common/errorator.h b/src/crimson/common/errorator.h index 7113ccfa1463b..b87a7fce8fe6d 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; -- 2.39.5