Skip to content

Commit 07d0fd6

Browse files
CGQAQRafaelGSS
authored andcommitted
src: remove OnScopeLeaveImpl's move assignment overload
... as it's not valid implementation and also has not been used PR-URL: #48732 Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 41cc3ef commit 07d0fd6

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/util.h

-6
Original file line numberDiff line numberDiff line change
@@ -577,12 +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-
this->~OnScopeLeave();
583-
new (this)OnScopeLeaveImpl(std::move(other));
584-
return *this;
585-
}
586580
};
587581

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

0 commit comments

Comments
 (0)