]> granicus.if.org Git - icu/commitdiff
ICU-10275 Remove fallback hack in C ListFormatter class.
authorTravis Keep <keep94@gmail.com>
Tue, 18 Nov 2014 19:20:57 +0000 (19:20 +0000)
committerTravis Keep <keep94@gmail.com>
Tue, 18 Nov 2014 19:20:57 +0000 (19:20 +0000)
X-SVN-Rev: 36748

icu4c/source/common/listformatter.cpp

index cfbd08bdce3cf31fea0b2376d6d5ce423fc602a3..e4484b17c71b49115b00eb106d311ef9bb140ad9 100644 (file)
@@ -178,12 +178,6 @@ static ListFormatInternal* loadListFormatInternal(
     rb = ures_getByKeyWithFallback(rb, "listPattern", rb, &errorCode);
     rb = ures_getByKeyWithFallback(rb, style, rb, &errorCode);
 
-    // TODO(Travis Keep): This is a hack until fallbacks can be added for
-    // listPattern/duration and listPattern/duration-narrow in CLDR.
-    if (errorCode == U_MISSING_RESOURCE_ERROR) {
-        errorCode = U_ZERO_ERROR;
-        rb = ures_getByKeyWithFallback(rb, "standard", rb, &errorCode);
-    }
     if (U_FAILURE(errorCode)) {
         ures_close(rb);
         return NULL;