diff options
author | Harald Musum <musum@verizonmedia.com> | 2019-05-22 08:07:15 +0200 |
---|---|---|
committer | Harald Musum <musum@verizonmedia.com> | 2019-05-22 08:07:15 +0200 |
commit | 762090f4bdc47ae2bbde55809b258ef011d61e46 (patch) | |
tree | 472fd038a811498ed4189a72df862039e502dc3a /node-admin | |
parent | 9aa6a159c098e627fd44b0c0ea332cde9171d3d6 (diff) |
Remove unused method in interface and remove default implementation
Diffstat (limited to 'node-admin')
-rw-r--r-- | node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/ContainerData.java | 9 | ||||
-rw-r--r-- | node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/NodeAgentImpl.java | 7 |
2 files changed, 2 insertions, 14 deletions
diff --git a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/ContainerData.java b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/ContainerData.java index 2e7b764df0b..6073c43b6a3 100644 --- a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/ContainerData.java +++ b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/ContainerData.java @@ -18,18 +18,11 @@ public interface ContainerData { void addFile(Path pathInContainer, String data); /** - * Remove file in container at path. - * - * @param pathInContainer The path to the file inside the container, absolute or relative root /. - */ - default void removeFile(Path pathInContainer) { /* TODO: Remove this when implementing classes have been updated */ } - - /** * Symlink to a file in container at path. * * @param symlink The path to the symlink inside the container, absolute or relative root /. * @param target The path to the target file for the symbolic link inside the container, absolute or relative root /. */ - default void createSymlink(Path symlink, Path target) { /* TODO: Remove this when implementing classes have been updated */ } + void createSymlink(Path symlink, Path target); } diff --git a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/NodeAgentImpl.java b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/NodeAgentImpl.java index 50bf57c78ff..baad401dfdf 100644 --- a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/NodeAgentImpl.java +++ b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/NodeAgentImpl.java @@ -711,12 +711,7 @@ public class NodeAgentImpl implements NodeAgent { } @Override - public void removeFile(Path pathInContainer) { - throw new UnsupportedOperationException("removeFile not implemented"); - } - - @Override - public void createSymlink(Path symlink, Path pathInContainer) { + public void createSymlink(Path symlink, Path target) { throw new UnsupportedOperationException("createSymlink not implemented"); } }; |