File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed
Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -1331,21 +1331,15 @@ namespace ct_error {
13311331
13321332 class assert_all {
13331333 const char * const msg = nullptr ;
1334- std::function<void ()> pre_assert;
13351334 public:
13361335 template <std::size_t N>
13371336 assert_all (const char (&msg)[N])
13381337 : msg(msg) {
13391338 }
13401339 assert_all () = default;
1341- assert_all (std::function<void ()> &&f)
1342- : pre_assert(std::move(f)) {}
13431340
13441341 template <class ErrorT >
13451342 no_touch_error_marker operator ()(ErrorT&& raw_error) {
1346- if (pre_assert) {
1347- pre_assert ();
1348- }
13491343 using decayed_t = std::decay_t <ErrorT>;
13501344 decayed_t::error_t::handle ([this ] (auto && error_v) {
13511345 ceph_abort_msgf (" %s: %s" , msg ? msg : " " , error_v.message ().c_str ());
You can’t perform that action at this time.
0 commit comments