Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
src: remove unused operator overload
  • Loading branch information
CGQAQ committed Jul 12, 2023
commit 750f7973d6f0c810e3ca671c1ed9ba56b4383c69
8 changes: 0 additions & 8 deletions src/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -577,14 +577,6 @@ struct OnScopeLeaveImpl {
: fn_(std::move(other.fn_)), active_(other.active_) {
other.active_ = false;
}
OnScopeLeaveImpl& operator=(OnScopeLeaveImpl&& other) {
if (this == &other) return *this;
if (active_) fn_();
fn_ = std::move(other.fn_);
active_ = other.active_;
other.active_ = false;
return *this;
}
};

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