diff --git a/icu4c/source/i18n/datefmt.cpp b/icu4c/source/i18n/datefmt.cpp index 72404d92a4..f293b1724a 100644 --- a/icu4c/source/i18n/datefmt.cpp +++ b/icu4c/source/i18n/datefmt.cpp @@ -26,9 +26,6 @@ // class DateFormat // ***************************************************************************** -int32_t DateFormat::fgLocalesCount; -const Locale* DateFormat::fgLocales = 0; - DateFormat::DateFormat() : fCalendar(0), fNumberFormat(0) @@ -231,53 +228,10 @@ DateFormat::create(EStyle timeStyle, EStyle dateStyle, const Locale& locale) const Locale* DateFormat::getAvailableLocales(int32_t& count) { - // return LocaleData.getAvailableLocales("DateTimePatterns"); - - - // We only do this computation once. Thereafter, we keep it in the static - // fgLocalesArray. What we do is iterate over all the locales, and try to - // load a specific resource from them which indicates that they have - // date format data. - - if (!fgLocales) - { - // This is going to load all the locale resource bundles into the - // cache! - int32_t localesCount; - const Locale* locales = Locale::getAvailableLocales(localesCount); - Locale* temp = new Locale[localesCount]; - int32_t newLocalesCount = 0; - int32_t i; - for (i=0; i