mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-24 01:42:17 +00:00
LibJS+LibUnicode: Remove unused FormatNumericToString AO
This commit is contained in:
parent
b019633558
commit
8cec9e7557
Notes:
github-actions[bot]
2025-07-08 15:20:36 +00:00
Author: https://github.com/trflynn89
Commit: 8cec9e7557
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5354
4 changed files with 0 additions and 23 deletions
|
@ -616,21 +616,6 @@ public:
|
|||
return icu_string_to_string(result);
|
||||
}
|
||||
|
||||
virtual String format_to_decimal(Value const& value) const override
|
||||
{
|
||||
UErrorCode status = U_ZERO_ERROR;
|
||||
|
||||
auto formatted = format_impl(value);
|
||||
if (!formatted.has_value())
|
||||
return {};
|
||||
|
||||
auto result = formatted->toDecimalNumber<StringBuilder>(status);
|
||||
if (icu_failure(status))
|
||||
return {};
|
||||
|
||||
return MUST(result.to_string());
|
||||
}
|
||||
|
||||
virtual Vector<Partition> format_to_parts(Value const& value) const override
|
||||
{
|
||||
auto formatted = format_impl(value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue