mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-22 17:31:58 -05:00
AK: Use StringImpl::operator== in FlyString
This commit is contained in:
parent
4c33209011
commit
3dbd5c98da
1 changed files with 1 additions and 5 deletions
|
@ -40,11 +40,7 @@ struct FlyStringImplTraits : public AK::Traits<StringImpl*> {
|
|||
{
|
||||
ASSERT(a);
|
||||
ASSERT(b);
|
||||
if (a == b)
|
||||
return true;
|
||||
if (a->length() != b->length())
|
||||
return false;
|
||||
return !__builtin_memcmp(a->characters(), b->characters(), a->length());
|
||||
return *a == *b;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue