From: Matan Breizman Date: Mon, 21 Apr 2025 14:13:38 +0000 (+0000) Subject: crimson/common/errorator: Cleanup assert_all pre_assert X-Git-Tag: v20.3.0~28^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f5d5f885790bf12947db6a4c64fe25f5c11db821;p=ceph.git crimson/common/errorator: Cleanup assert_all pre_assert Not used Signed-off-by: Matan Breizman --- diff --git a/src/crimson/common/errorator.h b/src/crimson/common/errorator.h index 47ef83125fa3..66316dd90fe2 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());