Skip to content

Commit

Permalink
src: remove OnScopeLeaveImpl's move assignment overload
Browse files Browse the repository at this point in the history
... as it's not valid implementation and also has not been used

PR-URL: nodejs/node#48732
Reviewed-By: Darshan Sen <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
sercher committed Apr 25, 2024
1 parent 6526326 commit 8f423b8
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions graal-nodejs/src/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -704,12 +704,6 @@ struct OnScopeLeaveImpl {
: fn_(std::move(other.fn_)), active_(other.active_) {
other.active_ = false;
}
OnScopeLeaveImpl& operator=(OnScopeLeaveImpl&& other) {
if (this == &other) return *this;
this->~OnScopeLeave();
new (this)OnScopeLeaveImpl(std::move(other));
return *this;
}
};

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

0 comments on commit 8f423b8

Please sign in to comment.