]> granicus.if.org Git - icu/commitdiff
ICU-21275 Remove obsolete functions from numberrangeformatter.h
authorShane F. Carr <shane@unicode.org>
Thu, 4 Feb 2021 03:06:31 +0000 (21:06 -0600)
committerShane F. Carr <shane@unicode.org>
Tue, 9 Feb 2021 22:10:20 +0000 (16:10 -0600)
icu4c/source/i18n/number_output.cpp
icu4c/source/i18n/unicode/numberrangeformatter.h

index 7129b94e0f86e404fdaa1ce24c4a23128449ecce..77e2e302a2a405b8b6747b46050c6fa2e91e170b 100644 (file)
@@ -52,16 +52,6 @@ UPRV_FORMATTED_VALUE_SUBCLASS_AUTO_IMPL(FormattedNumberRange)
 
 #define UPRV_NOARG
 
-UnicodeString FormattedNumberRange::getFirstDecimal(UErrorCode& status) const {
-    UPRV_FORMATTED_VALUE_METHOD_GUARD(ICU_Utility::makeBogusString())
-    return fData->quantity1.toScientificString();
-}
-
-UnicodeString FormattedNumberRange::getSecondDecimal(UErrorCode& status) const {
-    UPRV_FORMATTED_VALUE_METHOD_GUARD(ICU_Utility::makeBogusString())
-    return fData->quantity2.toScientificString();
-}
-
 void FormattedNumberRange::getDecimalNumbers(ByteSink& sink1, ByteSink& sink2, UErrorCode& status) const {
     UPRV_FORMATTED_VALUE_METHOD_GUARD(UPRV_NOARG)
     impl::DecNum decnum1;
index 4e0a15badb14b8b7dd907ff34ca0f8e427071546..dfceeefdb478bf8c71f21ca01e33ee620a3418bd 100644 (file)
@@ -608,49 +608,6 @@ class U_I18N_API FormattedNumberRange : public UMemory, public FormattedValue {
     /** @copydoc FormattedValue::nextPosition() */
     UBool nextPosition(ConstrainedFieldPosition& cfpos, UErrorCode& status) const U_OVERRIDE;
 
-#ifndef U_HIDE_DEPRECATED_API
-    /**
-     * Export the first formatted number as a decimal number. This endpoint
-     * is useful for obtaining the exact number being printed after scaling
-     * and rounding have been applied by the number range formatting pipeline.
-     *
-     * The syntax of the unformatted number is a "numeric string"
-     * as defined in the Decimal Arithmetic Specification, available at
-     * http://speleotrove.com/decimal
-     *
-     * TODO(ICU-21275): This function will be removed in ICU 69.
-     * Use getDecimalNumbers() instead.
-     *
-     * @param status Set if an error occurs.
-     * @return A decimal representation of the first formatted number.
-     * @deprecated ICU 68 Use getDecimalNumbers instead.
-     * @see NumberRangeFormatter
-     * @see #getSecondDecimal
-     */
-    UnicodeString getFirstDecimal(UErrorCode& status) const;
-
-    /**
-     * Export the second formatted number as a decimal number. This endpoint
-     * is useful for obtaining the exact number being printed after scaling
-     * and rounding have been applied by the number range formatting pipeline.
-     *
-     * The syntax of the unformatted number is a "numeric string"
-     * as defined in the Decimal Arithmetic Specification, available at
-     * http://speleotrove.com/decimal
-     *
-     * TODO(ICU-21275): This function will be removed in ICU 69.
-     * Use getDecimalNumbers() instead.
-     *
-     * @param status Set if an error occurs.
-     * @return A decimal representation of the second formatted number.
-     * @deprecated ICU 68 Use getDecimalNumbers instead.
-     * @see NumberRangeFormatter
-     * @see #getFirstDecimal
-     */
-    UnicodeString getSecondDecimal(UErrorCode& status) const;
-#endif // U_HIDE_DEPRECATED_API
-
-
 #ifndef U_HIDE_DRAFT_API
     /**
      * Extracts the formatted range as a pair of decimal numbers. This endpoint