summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2022-06-03 13:40:19 +0200
committergjoranv <gv@verizonmedia.com>2022-06-08 11:45:26 +0200
commit36a315f64aa724d3bd419791e34a7b2026f532bc (patch)
treec625f5e016340f1f04c9d598ba06f4f733f62d47
parent795dc83345c4b2c9d717fbcec4fee566c501aef5 (diff)
Remove on Vespa 8
-rw-r--r--config-lib/src/main/java/com/yahoo/config/ConfigInstance.java20
-rw-r--r--config/src/main/java/com/yahoo/config/subscription/impl/JRTConfigSubscription.java2
2 files changed, 0 insertions, 22 deletions
diff --git a/config-lib/src/main/java/com/yahoo/config/ConfigInstance.java b/config-lib/src/main/java/com/yahoo/config/ConfigInstance.java
index 5f06bc27dec..f37ed8a99d0 100644
--- a/config-lib/src/main/java/com/yahoo/config/ConfigInstance.java
+++ b/config-lib/src/main/java/com/yahoo/config/ConfigInstance.java
@@ -36,8 +36,6 @@ public abstract class ConfigInstance extends InnerNode {
public interface Producer {}
- private String configMd5 = "";
-
@SuppressWarnings("unused") // Used by reflection from ConfigInstanceUtil
String configId;
@@ -110,24 +108,6 @@ public abstract class ConfigInstance extends InnerNode {
}
}
- /**
- * @deprecated do not use
- */
- @Deprecated
- // TODO: Remove in Vespa 8
- public String getConfigMd5() {
- return configMd5;
- }
-
- /**
- * @deprecated do not use
- */
- @Deprecated
- // TODO: Remove in Vespa 8
- public void setConfigMd5(String configMd5) {
- this.configMd5 = configMd5;
- }
-
private static String getStaticStringField(Class<?> type, String fieldName) {
try {
return (String) type.getField(fieldName).get(null);
diff --git a/config/src/main/java/com/yahoo/config/subscription/impl/JRTConfigSubscription.java b/config/src/main/java/com/yahoo/config/subscription/impl/JRTConfigSubscription.java
index 23c38812d64..8580b4584e2 100644
--- a/config/src/main/java/com/yahoo/config/subscription/impl/JRTConfigSubscription.java
+++ b/config/src/main/java/com/yahoo/config/subscription/impl/JRTConfigSubscription.java
@@ -132,12 +132,10 @@ public class JRTConfigSubscription<T extends ConfigInstance> extends ConfigSubsc
* @param jrtRequest a config request
* @return an instance of a config class (subclass of ConfigInstance)
*/
- @SuppressWarnings("deprecation")
private T toConfigInstance(JRTClientConfigRequest jrtRequest) {
Payload payload = jrtRequest.getNewPayload();
ConfigPayload configPayload = ConfigPayload.fromUtf8Array(payload.withCompression(CompressionType.UNCOMPRESSED).getData());
T configInstance = configPayload.toInstance(configClass, jrtRequest.getConfigKey().getConfigId());
- configInstance.setConfigMd5(jrtRequest.getNewChecksums().getForType(MD5).asString()); // Note: Sets configmd5 in ConfigInstance
return configInstance;
}