From 27c07ec8e3bed57aafedad7b20689052398d4b58 Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Mon, 19 Oct 2015 21:11:54 +0000 Subject: [PATCH] LUCENE-6778: just use this.radius git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1709478 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/lucene/search/GeoPointDistanceRangeQuery.java | 9 --------- 1 file changed, 9 deletions(-) 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();