Skip to content

Commit d071863

Browse files
author
Christoph Büscher
committed
Remove unused methods in ValueType (#34624)
The removed methods seem unused in the rest of the project.
1 parent 06230bd commit d071863

File tree

1 file changed

+0
-16
lines changed
  • server/src/main/java/org/elasticsearch/search/aggregations/support

1 file changed

+0
-16
lines changed

server/src/main/java/org/elasticsearch/search/aggregations/support/ValueType.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,6 @@ public boolean isNumeric() {
7777
}
7878
},
7979
GEOPOINT((byte) 8, "geo_point", "geo_point", ValuesSourceType.GEOPOINT, IndexGeoPointFieldData.class, DocValueFormat.GEOHASH) {
80-
@Override
81-
public boolean isGeoPoint() {
82-
return true;
83-
}
8480
},
8581
BOOLEAN((byte) 9, "boolean", "boolean", ValuesSourceType.NUMERIC, IndexNumericFieldData.class, DocValueFormat.BOOLEAN) {
8682
@Override
@@ -108,10 +104,6 @@ public boolean isNumeric() {
108104
this.defaultFormat = defaultFormat;
109105
}
110106

111-
public String description() {
112-
return description;
113-
}
114-
115107
public String getPreferredName() {
116108
return preferredName;
117109
}
@@ -120,10 +112,6 @@ public ValuesSourceType getValuesSourceType() {
120112
return valuesSourceType;
121113
}
122114

123-
public boolean compatibleWith(IndexFieldData fieldData) {
124-
return fieldDataType.isInstance(fieldData);
125-
}
126-
127115
public boolean isA(ValueType valueType) {
128116
return valueType.valuesSourceType == valuesSourceType &&
129117
valueType.fieldDataType.isAssignableFrom(fieldDataType);
@@ -145,10 +133,6 @@ public boolean isFloatingPoint() {
145133
return false;
146134
}
147135

148-
public boolean isGeoPoint() {
149-
return false;
150-
}
151-
152136
public static ValueType resolveForScript(String type) {
153137
switch (type) {
154138
case "string": return STRING;

0 commit comments

Comments
 (0)