Просмотр исходного кода

LibJS: Delete unused `operator=`s in SafeFunction

Aliaksandr Kalenik 1 год назад
Родитель
Сommit
ee29a21ae8
1 измененных файлов с 0 добавлено и 19 удалено
  1. 0 19
      Userland/Libraries/LibJS/SafeFunction.h

+ 0 - 19
Userland/Libraries/LibJS/SafeFunction.h

@@ -83,25 +83,6 @@ public:
 
     explicit operator bool() const { return !!callable_wrapper(); }
 
-    template<typename CallableType>
-    SafeFunction& operator=(CallableType&& callable)
-    requires((AK::IsFunctionObject<CallableType> && IsCallableWithArguments<CallableType, Out, In...>))
-    {
-        clear();
-        init_with_callable(forward<CallableType>(callable), CallableKind::FunctionObject);
-        return *this;
-    }
-
-    template<typename FunctionType>
-    SafeFunction& operator=(FunctionType f)
-    requires((AK::IsFunctionPointer<FunctionType> && IsCallableWithArguments<RemovePointer<FunctionType>, Out, In...>))
-    {
-        clear();
-        if (f)
-            init_with_callable(move(f), CallableKind::FunctionPointer);
-        return *this;
-    }
-
     SafeFunction& operator=(nullptr_t)
     {
         clear();