ICU-11912 Removing unused method in TimeZoneNamesImpl.

X-SVN-Rev: 38966
This commit is contained in:
Shane Carr 2016-07-12 22:37:06 +00:00
parent bfe100bab8
commit 49809b7559

View File

@ -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();
}