mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 22:44:49 +00:00
ICU-12634 remove UResource.TableSink.enter() & leave()
X-SVN-Rev: 38952
This commit is contained in:
parent
9c875e067a
commit
3f6aa90cdb
2 changed files with 0 additions and 19 deletions
|
@ -1053,7 +1053,6 @@ public final class ICUResourceBundleReader {
|
|||
}
|
||||
void getAllItems(ICUResourceBundleReader reader,
|
||||
UResource.Key key, ReaderValue value, TableSink sink) {
|
||||
sink.enter(size);
|
||||
for (int i = 0; i < size; ++i) {
|
||||
if (keyOffsets != null) {
|
||||
reader.setKeyFromKey16(keyOffsets[i], key);
|
||||
|
@ -1082,7 +1081,6 @@ public final class ICUResourceBundleReader {
|
|||
sink.put(key, value);
|
||||
}
|
||||
}
|
||||
sink.leave();
|
||||
}
|
||||
@Override
|
||||
public boolean getKeyAndValue(int i, UResource.Key key, UResource.Value value) {
|
||||
|
|
|
@ -475,16 +475,6 @@ public final class UResource {
|
|||
* never put() as {@link Value} items.
|
||||
*/
|
||||
public static class TableSink {
|
||||
/**
|
||||
* "Enters" the table.
|
||||
* Called just before enumerating the table's resource items.
|
||||
* The size can be used to allocate storage for the items.
|
||||
* It usually differs between child and parent bundles.
|
||||
*
|
||||
* @param size number of table items
|
||||
*/
|
||||
public void enter(int size) {}
|
||||
|
||||
/**
|
||||
* Adds a key-value pair from a resource table.
|
||||
*
|
||||
|
@ -516,12 +506,5 @@ public final class UResource {
|
|||
public TableSink getOrCreateTableSink(Key key) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* "Leaves" the table.
|
||||
* Indicates that all of the resources and sub-resources of the current table
|
||||
* have been enumerated.
|
||||
*/
|
||||
public void leave() {}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue