1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:58:11 +00:00

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

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