Skip to content

Commit 358273d

Browse files
CGQAQtargos
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 e455dd4 commit 358273d

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
@@ -568,12 +568,6 @@ struct OnScopeLeaveImpl {
568568
: fn_(std::move(other.fn_)), active_(other.active_) {
569569
other.active_ = false;
570570
}
571-
OnScopeLeaveImpl& operator=(OnScopeLeaveImpl&& other) {
572-
if (this == &other) return *this;
573-
this->~OnScopeLeave();
574-
new (this)OnScopeLeaveImpl(std::move(other));
575-
return *this;
576-
}
577571
};
578572

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

0 commit comments

Comments
 (0)