diff --git a/lucene/sandbox/src/java/org/apache/lucene/search/GeoPointDistanceRangeQuery.java b/lucene/sandbox/src/java/org/apache/lucene/search/GeoPointDistanceRangeQuery.java index 6afc9c7ae7c..7e01b0c6144 100644 --- a/lucene/sandbox/src/java/org/apache/lucene/search/GeoPointDistanceRangeQuery.java +++ b/lucene/sandbox/src/java/org/apache/lucene/search/GeoPointDistanceRangeQuery.java @@ -45,15 +45,6 @@ public final class GeoPointDistanceRangeQuery extends GeoPointDistanceQuery { return q; } - final double radius; - if (q instanceof BooleanQuery) { - final List clauses = ((BooleanQuery)q).clauses(); - assert clauses.size() > 0; - radius = ((GeoPointDistanceQueryImpl)(clauses.get(0).getQuery())).getRadius(); - } else { - radius = ((GeoPointDistanceQueryImpl)q).getRadius(); - } - // add an exclusion query BooleanQuery.Builder bqb = new BooleanQuery.Builder();