From 738e770fce259a06f490757eb9c62005c20a292a Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 18 Oct 2022 13:59:00 +0200 Subject: [PATCH] LibJS: Remove unnecessary operator==() for ({Nonnull,}GCPtr, T*) These aren't necessary in the first place since {Nonnull,}GCPtr has operator T*() --- Userland/Libraries/LibJS/Heap/GCPtr.h | 12 ------------ 1 file changed, 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 const& a, GCPtr const& b) return a.ptr() == b.ptr(); } -template -inline bool operator==(NonnullGCPtr const& a, U const* b) -{ - return a.ptr() == b; -} - -template -inline bool operator==(GCPtr const& a, U const* b) -{ - return a.ptr() == b; -} - }