From 37e75b5b27ab92479e169b035ad432b97d287040 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 1 Feb 2026 11:43:48 +0000 Subject: [PATCH 1/2] Initial plan From 6ce27e152de9a9234e7b56d33ec9c95edc927050 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 1 Feb 2026 12:05:11 +0000 Subject: [PATCH 2/2] Remove unused ToUpperInvariantMode methods from OrdinalCasing.Icu.cs Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com> --- .../src/System/Globalization/OrdinalCasing.Icu.cs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/libraries/System.Private.CoreLib/src/System/Globalization/OrdinalCasing.Icu.cs b/src/libraries/System.Private.CoreLib/src/System/Globalization/OrdinalCasing.Icu.cs index e8d6caf5b2b989..d20aa67ea60a12 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Globalization/OrdinalCasing.Icu.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Globalization/OrdinalCasing.Icu.cs @@ -142,17 +142,6 @@ internal static char ToUpper(char c) return (char)casingTable[((int)c) & 0xFF]; } - [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static char ToUpperInvariantMode(char c) => c <= '\u00FF' ? (char)s_basicLatin[(int)c] : c; - - public static void ToUpperInvariantMode(this ReadOnlySpan source, Span destination) - { - for (int i = 0; i < source.Length; i++) - { - destination[i] = ToUpperInvariantMode(source[i]); - } - } - internal static void ToUpperOrdinal(ReadOnlySpan source, Span destination) { Debug.Assert(!GlobalizationMode.Invariant);