Skip to content

Commit f5d5f88

Browse files
committed
crimson/common/errorator: Cleanup assert_all pre_assert
Not used Signed-off-by: Matan Breizman <[email protected]>
1 parent 5900fb6 commit f5d5f88

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/crimson/common/errorator.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff 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());

0 commit comments

Comments
 (0)