diff --git a/icu4c/source/i18n/currfmt.cpp b/icu4c/source/i18n/currfmt.cpp index 42471c01856..e2fc5a8f202 100644 --- a/icu4c/source/i18n/currfmt.cpp +++ b/icu4c/source/i18n/currfmt.cpp @@ -1,6 +1,6 @@ /* ********************************************************************** -* Copyright (c) 2004, International Business Machines +* Copyright (c) 2004-2006, International Business Machines * Corporation and others. All Rights Reserved. ********************************************************************** * Author: Alan Liu @@ -53,24 +53,12 @@ UnicodeString& CurrencyFormat::format(const Formattable& obj, return fmt->format(obj, appendTo, pos, ec); } -UnicodeString& CurrencyFormat::format(const Formattable& obj, - UnicodeString& appendTo, - UErrorCode& ec) const { - return MeasureFormat::format(obj, appendTo, ec); -} - void CurrencyFormat::parseObject(const UnicodeString& source, Formattable& result, ParsePosition& pos) const { fmt->parseCurrency(source, result, pos); } -void CurrencyFormat::parseObject(const UnicodeString& source, - Formattable& result, - UErrorCode& ec) const { - MeasureFormat::parseObject(source, result, ec); -} - UOBJECT_DEFINE_RTTI_IMPLEMENTATION(CurrencyFormat) U_NAMESPACE_END diff --git a/icu4c/source/i18n/currfmt.h b/icu4c/source/i18n/currfmt.h index 659b1ad7382..b9e8dd89686 100644 --- a/icu4c/source/i18n/currfmt.h +++ b/icu4c/source/i18n/currfmt.h @@ -1,6 +1,6 @@ /* ********************************************************************** -* Copyright (c) 2004, International Business Machines +* Copyright (c) 2004-2006, International Business Machines * Corporation and others. All Rights Reserved. ********************************************************************** * Author: Alan Liu @@ -70,13 +70,6 @@ class U_I18N_API CurrencyFormat : public MeasureFormat { FieldPosition& pos, UErrorCode& ec) const; - /** - * Redeclare Format API to prevent hiding. - */ - UnicodeString& format(const Formattable& obj, - UnicodeString& appendTo, - UErrorCode& ec) const; - /** * Override Format API. */ @@ -84,13 +77,6 @@ class U_I18N_API CurrencyFormat : public MeasureFormat { Formattable& result, ParsePosition& pos) const; - /** - * Redeclare Format API to prevent hiding. - */ - void parseObject(const UnicodeString& source, - Formattable& result, - UErrorCode& ec) const; - /** * Override Format API. */