Skip to content

Commit ba93f28

Browse files
committed
src: remove unused operator overload
1 parent 026e0f0 commit ba93f28

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/util.h

-8
Original file line numberDiff line numberDiff line change
@@ -577,14 +577,6 @@ struct OnScopeLeaveImpl {
577577
: fn_(std::move(other.fn_)), active_(other.active_) {
578578
other.active_ = false;
579579
}
580-
OnScopeLeaveImpl& operator=(OnScopeLeaveImpl&& other) {
581-
if (this == &other) return *this;
582-
if (active_) fn_();
583-
fn_ = std::move(other.fn_);
584-
active_ = other.active_;
585-
other.active_ = false;
586-
return *this;
587-
}
588580
};
589581

590582
// Run a function when exiting the current scope. Used like this:

0 commit comments

Comments
 (0)