Title: [295141] trunk/Source/WTF/wtf/text/AtomString.h
Revision
295141
Author
[email protected]
Date
2022-06-02 13:34:50 -0700 (Thu, 02 Jun 2022)

Log Message

Drop unnecessary operator==() overloads for AtomString
https://bugs.webkit.org/show_bug.cgi?id=241232

Reviewed by Darin Adler.

* Source/WTF/wtf/text/AtomString.h:
(WTF::operator==):
(WTF::operator!=):

Canonical link: https://commits.webkit.org/251231@main

Modified Paths

Diff

Modified: trunk/Source/WTF/wtf/text/AtomString.h (295140 => 295141)


--- trunk/Source/WTF/wtf/text/AtomString.h	2022-06-02 20:17:42 UTC (rev 295140)
+++ trunk/Source/WTF/wtf/text/AtomString.h	2022-06-02 20:34:50 UTC (rev 295141)
@@ -164,21 +164,15 @@
 static_assert(sizeof(AtomString) == sizeof(String), "AtomString and String must be the same size!");
 
 inline bool operator==(const AtomString& a, const AtomString& b) { return a.impl() == b.impl(); }
-bool operator==(const AtomString&, const LChar*);
-inline bool operator==(const AtomString& a, const char* b) { return WTF::equal(a.impl(), reinterpret_cast<const LChar*>(b)); }
 inline bool operator==(const AtomString& a, ASCIILiteral b) { return WTF::equal(a.impl(), b); }
 inline bool operator==(const AtomString& a, const Vector<UChar>& b) { return a.impl() && equal(a.impl(), b.data(), b.size()); }    
 inline bool operator==(const AtomString& a, const String& b) { return equal(a.impl(), b.impl()); }
-inline bool operator==(const LChar* a, const AtomString& b) { return b == a; }
 inline bool operator==(const String& a, const AtomString& b) { return equal(a.impl(), b.impl()); }
 inline bool operator==(const Vector<UChar>& a, const AtomString& b) { return b == a; }
 
 inline bool operator!=(const AtomString& a, const AtomString& b) { return a.impl() != b.impl(); }
-inline bool operator!=(const AtomString& a, const LChar* b) { return !(a == b); }
-inline bool operator!=(const AtomString& a, const char* b) { return !(a == b); }
 inline bool operator!=(const AtomString& a, const String& b) { return !equal(a.impl(), b.impl()); }
 inline bool operator!=(const AtomString& a, const Vector<UChar>& b) { return !(a == b); }
-inline bool operator!=(const LChar* a, const AtomString& b) { return !(b == a); }
 inline bool operator!=(ASCIILiteral a, const AtomString& b) { return !(b == a); }
 inline bool operator!=(const String& a, const AtomString& b) { return !equal(a.impl(), b.impl()); }
 inline bool operator!=(const Vector<UChar>& a, const AtomString& b) { return !(a == b); }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to