mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
AK: Make FlyString-to-FlyString comparison inline & trivial
This should never boil down to more than a machine word comparison.
This commit is contained in:
@@ -89,11 +89,6 @@ StringView FlyString::bytes_as_string_view() const
|
||||
return m_data.bytes();
|
||||
}
|
||||
|
||||
bool FlyString::operator==(FlyString const& other) const
|
||||
{
|
||||
return m_data == other.m_data;
|
||||
}
|
||||
|
||||
bool FlyString::operator==(String const& other) const
|
||||
{
|
||||
return m_data == other;
|
||||
|
||||
Reference in New Issue
Block a user