]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/common/errorator: Cleanup assert_all pre_assert
authorMatan Breizman <mbreizma@redhat.com>
Mon, 21 Apr 2025 14:13:38 +0000 (14:13 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Tue, 22 Apr 2025 15:11:58 +0000 (15:11 +0000)
Not used

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
src/crimson/common/errorator.h

index 47ef83125fa36ccc62608e557a9d641a5385fc36..66316dd90fe2104c23dd9f23fe7bab624d32a8ed 100644 (file)
@@ -1331,21 +1331,15 @@ namespace ct_error {
 
   class assert_all {
     const char* const msg = nullptr;
-    std::function<void()> pre_assert;
   public:
     template <std::size_t N>
     assert_all(const char (&msg)[N])
       : msg(msg) {
     }
     assert_all() = default;
-    assert_all(std::function<void()> &&f)
-      : pre_assert(std::move(f)) {}
 
     template <class ErrorT>
     no_touch_error_marker operator()(ErrorT&& raw_error) {
-      if (pre_assert) {
-        pre_assert();
-      }
       using decayed_t = std::decay_t<ErrorT>;
       decayed_t::error_t::handle([this] (auto&& error_v) {
         ceph_abort_msgf("%s: %s", msg ? msg : "", error_v.message().c_str());