1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-28 16:42:12 +00:00

LibUnicode: Remove obsolete Unicode::get_default_number_system

This has been superseded by get_preferred_keyword_value_for_locale,
which doesn't require allocating a Vector just to return its first
element.
This commit is contained in:
Timothy Flynn 2022-07-14 13:26:16 -04:00 committed by Andreas Kling
parent c657f23e6f
commit 998f62936b
3 changed files with 1 additions and 10 deletions

View file

@ -247,7 +247,7 @@ static Optional<String> format_time_zone_offset(StringView locale, CalendarPatte
if (!formats.has_value())
return {};
auto number_system = get_default_number_system(locale);
auto number_system = get_preferred_keyword_value_for_locale(locale, "nu"sv);
if (!number_system.has_value())
return {};