diff options
author | Harald Musum <musum@yahooinc.com> | 2021-10-14 16:48:52 +0200 |
---|---|---|
committer | Harald Musum <musum@yahooinc.com> | 2021-10-14 16:48:52 +0200 |
commit | f474403993513b992ce79de103bd77a64be92c33 (patch) | |
tree | 2d9f256f3568fabcf54a8fa3a27cd9772c0d3169 /config | |
parent | 239b2535a777dc034db4bf91daa3c34a2e39afcb (diff) |
Remove unused method
Diffstat (limited to 'config')
-rw-r--r-- | config/src/main/java/com/yahoo/vespa/config/protocol/ConfigResponse.java | 2 | ||||
-rw-r--r-- | config/src/main/java/com/yahoo/vespa/config/protocol/SlimeConfigResponse.java | 9 |
2 files changed, 1 insertions, 10 deletions
diff --git a/config/src/main/java/com/yahoo/vespa/config/protocol/ConfigResponse.java b/config/src/main/java/com/yahoo/vespa/config/protocol/ConfigResponse.java index 47d3203b32e..771068aa67a 100644 --- a/config/src/main/java/com/yahoo/vespa/config/protocol/ConfigResponse.java +++ b/config/src/main/java/com/yahoo/vespa/config/protocol/ConfigResponse.java @@ -24,8 +24,6 @@ public interface ConfigResponse { boolean applyOnRestart(); - String getConfigMd5(); - void serialize(OutputStream os, CompressionType uncompressed) throws IOException; default boolean hasEqualConfig(JRTServerConfigRequest request) { diff --git a/config/src/main/java/com/yahoo/vespa/config/protocol/SlimeConfigResponse.java b/config/src/main/java/com/yahoo/vespa/config/protocol/SlimeConfigResponse.java index 018b1340b5d..ab96081a16e 100644 --- a/config/src/main/java/com/yahoo/vespa/config/protocol/SlimeConfigResponse.java +++ b/config/src/main/java/com/yahoo/vespa/config/protocol/SlimeConfigResponse.java @@ -1,16 +1,14 @@ // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespa.config.protocol; -import com.yahoo.vespa.config.PayloadChecksums; import com.yahoo.text.AbstractUtf8Array; import com.yahoo.vespa.config.ConfigPayload; +import com.yahoo.vespa.config.PayloadChecksums; import java.io.IOException; import java.io.OutputStream; import java.nio.ByteBuffer; -import static com.yahoo.vespa.config.PayloadChecksum.Type.MD5; - /** * Class for serializing config responses based on {@link com.yahoo.slime.Slime} implementing the {@link ConfigResponse} interface. * @@ -62,11 +60,6 @@ public class SlimeConfigResponse implements ConfigResponse { public boolean applyOnRestart() { return applyOnRestart; } @Override - public String getConfigMd5() { - return payloadChecksums.getForType(MD5).asString(); - } - - @Override public void serialize(OutputStream os, CompressionType type) throws IOException { ByteBuffer buf = Payload.from(payload, compressionInfo).withCompression(type).getData().wrap(); os.write(buf.array(), buf.arrayOffset()+buf.position(), buf.remaining()); |