AK: Remove superfluous check from Utf16View::equals_ignoring_case()

Returning true if both lengths are 0 is already handled by the default
case.
This commit is contained in:
Jelle Raaijmakers 2025-06-10 15:17:59 +02:00 committed by Jelle Raaijmakers
commit 7d7f6fa494
Notes: github-actions[bot] 2025-06-13 13:10:57 +00:00
2 changed files with 15 additions and 2 deletions

View file

@ -344,8 +344,6 @@ size_t Utf16View::calculate_length_in_code_points() const
bool Utf16View::equals_ignoring_case(Utf16View const& other) const
{
if (length_in_code_units() == 0)
return other.length_in_code_units() == 0;
if (length_in_code_units() != other.length_in_code_units())
return false;