diff options
author | gjoranv <gv@yahoo-inc.com> | 2017-07-10 17:51:40 +0200 |
---|---|---|
committer | gjoranv <gv@yahoo-inc.com> | 2017-07-10 17:51:40 +0200 |
commit | 367e2b309dd350a842653d67110e3c9542487fd8 (patch) | |
tree | f8ba5f29ffd394ec757c5cfcf8f90ef09603bd2d /config-lib/src/main | |
parent | e522f9accfee1a5b616d284dffb5d035ffc0a5d3 (diff) |
Remove NodeVector.setSize()
- Remains from before the generated config classes had builders.
Diffstat (limited to 'config-lib/src/main')
-rw-r--r-- | config-lib/src/main/java/com/yahoo/config/NodeVector.java | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/config-lib/src/main/java/com/yahoo/config/NodeVector.java b/config-lib/src/main/java/com/yahoo/config/NodeVector.java index 067f0daf816..0b8cf6a049b 100644 --- a/config-lib/src/main/java/com/yahoo/config/NodeVector.java +++ b/config-lib/src/main/java/com/yahoo/config/NodeVector.java @@ -29,17 +29,6 @@ public abstract class NodeVector<NODE> implements java.util.List<NODE> { return size(); } - /** - * Resizes this NodeVector. Removes or adds new nodes as needed. - * - * @param n the new size of this NodeVector - */ - // TODO: remove, only used by unit tests - public void setSize(int n) { - while (size() > n) vector.remove(n); - while (size() < n) vector.add(createNew()); - } - @SuppressWarnings("serial") public static class ReadOnlyException extends RuntimeException { } |