mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 09:49:15 +03: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:
parent
d87e2287dc
commit
738e770fce
Notes:
sideshowbarker
2024-07-17 14:36:19 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/738e770fce Pull-request: https://github.com/SerenityOS/serenity/pull/15672
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user