mirror of
https://github.com/RGBCube/serenity
synced 2025-06-29 01:32:07 +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:
parent
c657f23e6f
commit
998f62936b
3 changed files with 1 additions and 10 deletions
|
@ -22,13 +22,6 @@ Optional<NumberFormat> __attribute__((weak)) get_standard_number_system_format(S
|
|||
Vector<NumberFormat> __attribute__((weak)) get_compact_number_system_formats(StringView, StringView, CompactNumberFormatType) { return {}; }
|
||||
Vector<NumberFormat> __attribute__((weak)) get_unit_formats(StringView, StringView, Style) { return {}; }
|
||||
|
||||
Optional<StringView> get_default_number_system(StringView locale)
|
||||
{
|
||||
if (auto systems = get_keywords_for_locale(locale, "nu"sv); !systems.is_empty())
|
||||
return systems[0];
|
||||
return {};
|
||||
}
|
||||
|
||||
Optional<Span<u32 const>> __attribute__((weak)) get_digits_for_number_system(StringView)
|
||||
{
|
||||
// Fall back to "latn" digits when Unicode data generation is disabled.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue