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:
Andreas Kling
2024-03-13 11:42:36 +01:00
parent bc23c5b9fe
commit d125a76f85
3 changed files with 4 additions and 6 deletions

View File

@@ -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;