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

These aren't necessary in the first place since {Nonnull,}GCPtr has
operator T*()
This commit is contained in:
Andreas Kling 2022-10-18 13:59:00 +02:00
parent d87e2287dc
commit 738e770fce
Notes: sideshowbarker 2024-07-17 14:36:19 +09:00

View File

@ -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;
}
}