From a8ea8e67dc20689aa2e4c738a2f84ea3483ec872 Mon Sep 17 00:00:00 2001 From: Tarek Mahmoud Sayed Date: Tue, 25 Oct 2022 19:40:44 -0700 Subject: [PATCH] Remove the invalid assert (#77462) --- .../src/System/Globalization/CalendarData.Windows.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/libraries/System.Private.CoreLib/src/System/Globalization/CalendarData.Windows.cs b/src/libraries/System.Private.CoreLib/src/System/Globalization/CalendarData.Windows.cs index 917b60fe350f3..4602b06da94e2 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Globalization/CalendarData.Windows.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Globalization/CalendarData.Windows.cs @@ -431,8 +431,6 @@ private static int NlsGetCalendars(string localeName, bool useUserOverride, Cale // Get native two digit year max internal static int GetTwoDigitYearMax(CalendarId calendarId) { - Debug.Assert(GlobalizationMode.UseNls); - return GlobalizationMode.Invariant ? Invariant.iTwoDigitYearMax : CallGetCalendarInfoEx(null, calendarId, CAL_ITWODIGITYEARMAX, out int twoDigitYearMax) ? twoDigitYearMax :