mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-08-16 17:00:35 +03:00
AK: Remove String <-> char const* comparison operators
During the removal of StringView(char const*), all users of these functions were removed, and they are of dubious value (relying on implicit StringView conversion).
This commit is contained in:
parent
5422691f07
commit
3f8060d859
Notes:
sideshowbarker
2024-07-17 09:26:43 +09:00
Author: https://github.com/sin-ack Commit: https://github.com/SerenityOS/serenity/commit/3f8060d859 Pull-request: https://github.com/SerenityOS/serenity/pull/14555 Reviewed-by: https://github.com/Dexesttp ✅ Reviewed-by: https://github.com/kleinesfilmroellchen
@ -393,26 +393,6 @@ String String::invert_case() const
|
||||
return StringUtils::invert_case(*this);
|
||||
}
|
||||
|
||||
bool operator<(char const* characters, String const& string)
|
||||
{
|
||||
return string.view() > characters;
|
||||
}
|
||||
|
||||
bool operator>=(char const* characters, String const& string)
|
||||
{
|
||||
return string.view() <= characters;
|
||||
}
|
||||
|
||||
bool operator>(char const* characters, String const& string)
|
||||
{
|
||||
return string.view() < characters;
|
||||
}
|
||||
|
||||
bool operator<=(char const* characters, String const& string)
|
||||
{
|
||||
return string.view() >= characters;
|
||||
}
|
||||
|
||||
bool String::operator==(char const* cstring) const
|
||||
{
|
||||
return view() == cstring;
|
||||
|
@ -327,11 +327,6 @@ struct CaseInsensitiveStringTraits : public Traits<String> {
|
||||
static bool equals(String const& a, String const& b) { return a.equals_ignoring_case(b); }
|
||||
};
|
||||
|
||||
bool operator<(char const*, String const&);
|
||||
bool operator>=(char const*, String const&);
|
||||
bool operator>(char const*, String const&);
|
||||
bool operator<=(char const*, String const&);
|
||||
|
||||
String escape_html_entities(StringView html);
|
||||
|
||||
InputStream& operator>>(InputStream& stream, String& string);
|
||||
|
Loading…
Reference in New Issue
Block a user