diff options
author | Andreas Kling <kling@serenityos.org> | 2022-10-18 13:59:00 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-10-20 15:16:23 +0200 |
commit | 738e770fce259a06f490757eb9c62005c20a292a (patch) | |
tree | b1e955cf66d4c6121daba2788f3f869e958e262a /Userland/Libraries/LibJS | |
parent | d87e2287dc09d11c64bffacb0460020d7b217898 (diff) | |
download | serenity-738e770fce259a06f490757eb9c62005c20a292a.zip |
LibJS: Remove unnecessary operator==() for ({Nonnull,}GCPtr<T>, T*)
These aren't necessary in the first place since {Nonnull,}GCPtr has
operator T*()
Diffstat (limited to 'Userland/Libraries/LibJS')
-rw-r--r-- | Userland/Libraries/LibJS/Heap/GCPtr.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/Userland/Libraries/LibJS/Heap/GCPtr.h b/Userland/Libraries/LibJS/Heap/GCPtr.h index 1d809166b4..8ba3654af6 100644 --- a/Userland/Libraries/LibJS/Heap/GCPtr.h +++ b/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; -} - } |