diff --git a/Userland/Libraries/LibJS/SafeFunction.h b/Userland/Libraries/LibJS/SafeFunction.h index 48408ed544..caf959abbc 100644 --- a/Userland/Libraries/LibJS/SafeFunction.h +++ b/Userland/Libraries/LibJS/SafeFunction.h @@ -83,25 +83,6 @@ public: explicit operator bool() const { return !!callable_wrapper(); } - template - SafeFunction& operator=(CallableType&& callable) - requires((AK::IsFunctionObject && IsCallableWithArguments)) - { - clear(); - init_with_callable(forward(callable), CallableKind::FunctionObject); - return *this; - } - - template - SafeFunction& operator=(FunctionType f) - requires((AK::IsFunctionPointer && IsCallableWithArguments, Out, In...>)) - { - clear(); - if (f) - init_with_callable(move(f), CallableKind::FunctionPointer); - return *this; - } - SafeFunction& operator=(nullptr_t) { clear();