From 4f7895800e17b67aafec7127d7dfc61acd8598b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20B=C3=BCscher?= Date: Fri, 19 Oct 2018 09:50:45 +0200 Subject: [PATCH] Remove unused methods in ValueType (#34624) The removed methods seem unused in the rest of the project. --- .../search/aggregations/support/ValueType.java | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/support/ValueType.java b/server/src/main/java/org/elasticsearch/search/aggregations/support/ValueType.java index 7f6e76a6611..34fabadd01b 100644 --- a/server/src/main/java/org/elasticsearch/search/aggregations/support/ValueType.java +++ b/server/src/main/java/org/elasticsearch/search/aggregations/support/ValueType.java @@ -77,10 +77,6 @@ public enum ValueType implements Writeable { } }, GEOPOINT((byte) 8, "geo_point", "geo_point", ValuesSourceType.GEOPOINT, IndexGeoPointFieldData.class, DocValueFormat.GEOHASH) { - @Override - public boolean isGeoPoint() { - return true; - } }, BOOLEAN((byte) 9, "boolean", "boolean", ValuesSourceType.NUMERIC, IndexNumericFieldData.class, DocValueFormat.BOOLEAN) { @Override @@ -108,10 +104,6 @@ public enum ValueType implements Writeable { this.defaultFormat = defaultFormat; } - public String description() { - return description; - } - public String getPreferredName() { return preferredName; } @@ -120,10 +112,6 @@ public enum ValueType implements Writeable { return valuesSourceType; } - public boolean compatibleWith(IndexFieldData fieldData) { - return fieldDataType.isInstance(fieldData); - } - public boolean isA(ValueType valueType) { return valueType.valuesSourceType == valuesSourceType && valueType.fieldDataType.isAssignableFrom(fieldDataType); @@ -145,10 +133,6 @@ public enum ValueType implements Writeable { return false; } - public boolean isGeoPoint() { - return false; - } - public static ValueType resolveForScript(String type) { switch (type) { case "string": return STRING;