Parcourir la source

LibJS: Remove unnecessary operator==() for ({Nonnull,}GCPtr<T>, T*)

These aren't necessary in the first place since {Nonnull,}GCPtr has
operator T*()
Andreas Kling il y a 2 ans
Parent
commit
738e770fce
1 fichiers modifiés avec 0 ajouts et 12 suppressions
  1. 0 12
      Userland/Libraries/LibJS/Heap/GCPtr.h

+ 0 - 12
Userland/Libraries/LibJS/Heap/GCPtr.h

@@ -224,16 +224,4 @@ inline bool operator==(NonnullGCPtr<T> const& a, GCPtr<U> const& b)
     return a.ptr() == b.ptr();
 }
 
-template<typename T, typename U>
-inline bool operator==(NonnullGCPtr<T> const& a, U const* b)
-{
-    return a.ptr() == b;
-}
-
-template<typename T, typename U>
-inline bool operator==(GCPtr<T> const& a, U const* b)
-{
-    return a.ptr() == b;
-}
-
 }