diff --git a/src/util.h b/src/util.h index 57a11c70a4c..d8fcfe19780 100644 --- a/src/util.h +++ b/src/util.h @@ -568,12 +568,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: