From f5d5f885790bf12947db6a4c64fe25f5c11db821 Mon Sep 17 00:00:00 2001 From: Matan Breizman Date: Mon, 21 Apr 2025 14:13:38 +0000 Subject: [PATCH] crimson/common/errorator: Cleanup assert_all pre_assert Not used Signed-off-by: Matan Breizman --- src/crimson/common/errorator.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/crimson/common/errorator.h b/src/crimson/common/errorator.h index 47ef83125fa36..66316dd90fe21 100644 --- a/src/crimson/common/errorator.h +++ b/src/crimson/common/errorator.h @@ -1331,21 +1331,15 @@ namespace ct_error { class assert_all { const char* const msg = nullptr; - std::function pre_assert; public: template assert_all(const char (&msg)[N]) : msg(msg) { } assert_all() = default; - assert_all(std::function &&f) - : pre_assert(std::move(f)) {} template no_touch_error_marker operator()(ErrorT&& raw_error) { - if (pre_assert) { - pre_assert(); - } using decayed_t = std::decay_t; decayed_t::error_t::handle([this] (auto&& error_v) { ceph_abort_msgf("%s: %s", msg ? msg : "", error_v.message().c_str()); -- 2.39.5