From 49809b7559f91675ba36758f26527e49470ef47b Mon Sep 17 00:00:00 2001 From: Shane Carr Date: Tue, 12 Jul 2016 22:37:06 +0000 Subject: [PATCH] ICU-11912 Removing unused method in TimeZoneNamesImpl. X-SVN-Rev: 38966 --- .../core/src/com/ibm/icu/impl/TimeZoneNamesImpl.java | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/icu4j/main/classes/core/src/com/ibm/icu/impl/TimeZoneNamesImpl.java b/icu4j/main/classes/core/src/com/ibm/icu/impl/TimeZoneNamesImpl.java index efe348bdbd2..8fde043d1c9 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/impl/TimeZoneNamesImpl.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/impl/TimeZoneNamesImpl.java @@ -335,9 +335,8 @@ public class TimeZoneNamesImpl extends TimeZoneNames { public void put(UResource.Key key, UResource.Value value, boolean noFallback) { UResource.Table timeZonesTable = value.getTable(); for (int j = 0; timeZonesTable.getKeyAndValue(j, key, value); ++j) { - if (value.isNoInheritanceMarker()) { - consumeNoFallback(key); - } else if (value.getType() == UResourceBundle.TABLE) { + assert !value.isNoInheritanceMarker(); + if (value.getType() == UResourceBundle.TABLE) { consumeNamesTable(key, value, noFallback); } else { // Ignore fields that aren't tables (e.g., fallbackFormat and regionFormatStandard). @@ -377,13 +376,6 @@ public class TimeZoneNamesImpl extends TimeZoneNames { } } - private void consumeNoFallback(UResource.Key key) { - if (!keyToLoader.containsKey(key)) { - UResource.Key newKey = createKey(key); - keyToLoader.put(newKey, ZNamesLoader.DUMMY_LOADER); - } - } - UResource.Key createKey(UResource.Key key) { return key.clone(); }