From ee29a21ae8aa9bdc12983eb6057175ced28e1b44 Mon Sep 17 00:00:00 2001 From: Aliaksandr Kalenik Date: Thu, 17 Aug 2023 15:13:01 +0200 Subject: [PATCH] LibJS: Delete unused `operator=`s in SafeFunction --- Userland/Libraries/LibJS/SafeFunction.h | 19 ------------------- 1 file changed, 19 deletions(-) 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();