Remove unused methods in ValueType (#34624)

The removed methods seem unused in the rest of the project.
This commit is contained in:
Christoph Büscher 2018-10-19 09:50:45 +02:00 committed by GitHub
parent 670ccfb853
commit 4f7895800e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 16 deletions

View File

@ -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;