From cd82417c35eac77d53c36491d7421999c88f8a98 Mon Sep 17 00:00:00 2001 From: Mike McCandless Date: Wed, 27 Jan 2016 09:15:41 -0500 Subject: [PATCH] remove dead, and also scary, methods from geo tests --- .../apache/lucene/util/BaseGeoPointTestCase.java | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/lucene/sandbox/src/test/org/apache/lucene/util/BaseGeoPointTestCase.java b/lucene/sandbox/src/test/org/apache/lucene/util/BaseGeoPointTestCase.java index b3d711fc980..42adeabb1dd 100644 --- a/lucene/sandbox/src/test/org/apache/lucene/util/BaseGeoPointTestCase.java +++ b/lucene/sandbox/src/test/org/apache/lucene/util/BaseGeoPointTestCase.java @@ -413,22 +413,6 @@ public abstract class BaseGeoPointTestCase extends LuceneTestCase { verify(small, lats, lons); } - public long scaleLon(final double val) { - return (long) ((val-GeoUtils.MIN_LON_INCL) * LON_SCALE); - } - - public long scaleLat(final double val) { - return (long) ((val-GeoUtils.MIN_LAT_INCL) * LAT_SCALE); - } - - public double unscaleLon(final long val) { - return (val / LON_SCALE) + GeoUtils.MIN_LON_INCL; - } - - public double unscaleLat(final long val) { - return (val / LAT_SCALE) + GeoUtils.MIN_LAT_INCL; - } - public double randomLat(boolean small) { double result; if (small) {