Apache Lucene open-source search software
LUCENE-4197 SpatialArgs- remove unused min and max params
David Wayne Smiley2b9823f6787b
diff --git a/lucene/spatial/src/java/org/apache/lucene/spatial/query/SpatialArgs.java b/lucene/spatial/src/java/org/apache/lucene/spatial/query/SpatialArgs.javaindex 01c55868101..7f88bb9e329 100644--- a/lucene/spatial/src/java/org/apache/lucene/spatial/query/SpatialArgs.java+++ b/lucene/spatial/src/java/org/apache/lucene/spatial/query/SpatialArgs.java@@ -35,10 +35,6 @@ public class SpatialArgs {private Shape shape;private double distPrecision = DEFAULT_DIST_PRECISION;- // Useful for 'distance' calculations- private Double min;- private Double max;-public SpatialArgs(SpatialOperation operation) {this.operation = operation;}@@ -60,12 +56,6 @@ public class SpatialArgs {StringBuilder str = new StringBuilder();str.append(operation.getName()).append('(');str.append(shape.toString());- if (min != null) {- str.append(" min=").append(min);- }- if (max != null) {- str.append(" max=").append(max);- }str.append(" distPrec=").append(String.format(Locale.ROOT, "%.2f%%", distPrecision / 100d));str.append(')');return str.toString();@@ -111,19 +101,4 @@ public class SpatialArgs {this.distPrecision = distPrecision;}- public Double getMin() {- return min;- }-- public void setMin(Double min) {- this.min = min;- }-- public Double getMax() {- return max;- }-- public void setMax(Double max) {- this.max = max;- }}diff --git a/lucene/spatial/src/java/org/apache/lucene/spatial/query/SpatialArgsParser.java b/lucene/spatial/src/java/org/apache/lucene/spatial/query/SpatialArgsParser.javaindex a521eb3f0ca..ef137fe7d97 100644--- a/lucene/spatial/src/java/org/apache/lucene/spatial/query/SpatialArgsParser.java+++ b/lucene/spatial/src/java/org/apache/lucene/spatial/query/SpatialArgsParser.java@@ -75,8 +75,6 @@ public class SpatialArgsParser {body = v.substring(edx + 1).trim();if (body.length() > 0) {Map<String, String> aa = parseMap(body);- args.setMin(readDouble(aa.remove("min")));- args.setMax(readDouble(aa.remove("max")));args.setDistPrecision(readDouble(aa.remove("distPrec")));if (!aa.isEmpty()) {throw new InvalidSpatialArgument("unused parameters: " + aa, null);