Skip to content

Commit 2fc7e69

Browse files
Delete AreEqualOrdinalIgnoreCase (#42067)
This is unused after #40910 and breaks building standalone System.Globalization.Native (`error G94D986AD: unused function 'AreEqualOrdinalIgnoreCase' [-Werror,-Wunused-function]`).
1 parent 8b8c390 commit 2fc7e69

1 file changed

Lines changed: 0 additions & 24 deletions

File tree

src/libraries/Native/Unix/System.Globalization.Native/pal_collation.c

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -581,30 +581,6 @@ int32_t GlobalizationNative_LastIndexOf(
581581
return result;
582582
}
583583

584-
/*
585-
Static Function:
586-
AreEqualOrdinalIgnoreCase
587-
*/
588-
static int AreEqualOrdinalIgnoreCase(UChar32 one, UChar32 two)
589-
{
590-
// Return whether the two characters are identical or would be identical if they were upper-cased.
591-
592-
if (one == two)
593-
{
594-
return TRUE;
595-
}
596-
597-
if (one == 0x0131 || two == 0x0131)
598-
{
599-
// On Windows with InvariantCulture, the LATIN SMALL LETTER DOTLESS I (U+0131)
600-
// capitalizes to itself, whereas with ICU it capitalizes to LATIN CAPITAL LETTER I (U+0049).
601-
// We special case it to match the Windows invariant behavior.
602-
return FALSE;
603-
}
604-
605-
return u_toupper(one) == u_toupper(two);
606-
}
607-
608584
/*
609585
collation element is an int used for sorting. It consists of 3 components:
610586
* primary - first 16 bits, representing the base letter

0 commit comments

Comments
 (0)