mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:47:34 +00: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
2 changed files with 0 additions and 25 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue