Index: src/i18n.cc |
diff --git a/src/i18n.cc b/src/i18n.cc |
index 7c22871ff5e440f771659d44a0db013b34ec2105..1505d81787ee70759e4946801dae1aa6f4d7abeb 100644 |
--- a/src/i18n.cc |
+++ b/src/i18n.cc |
@@ -273,23 +273,6 @@ icu::DecimalFormat* CreateICUNumberFormat( |
delete number_format; |
return NULL; |
} |
- |
- UErrorCode status_digits = U_ZERO_ERROR; |
-#if U_ICU_VERSION_MAJOR_NUM >= 59 |
- uint32_t fraction_digits = ucurr_getDefaultFractionDigits( |
- icu::toUCharPtr(currency.getTerminatedBuffer()), &status_digits); |
-#else |
- uint32_t fraction_digits = ucurr_getDefaultFractionDigits( |
- currency.getTerminatedBuffer(), &status_digits); |
-#endif |
- if (U_SUCCESS(status_digits)) { |
- number_format->setMinimumFractionDigits(fraction_digits); |
- number_format->setMaximumFractionDigits(fraction_digits); |
- } else { |
- // Set min & max to default values (previously in i18n.js) |
- number_format->setMinimumFractionDigits(0); |
- number_format->setMaximumFractionDigits(3); |
- } |
} else if (style == UNICODE_STRING_SIMPLE("percent")) { |
number_format = static_cast<icu::DecimalFormat*>( |
icu::NumberFormat::createPercentInstance(icu_locale, status)); |