aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/src/cgeo/geocaching/geopoint/Viewport.java4
-rw-r--r--tests/src/cgeo/geocaching/geopoint/ViewportTest.java2
2 files changed, 1 insertions, 5 deletions
diff --git a/main/src/cgeo/geocaching/geopoint/Viewport.java b/main/src/cgeo/geocaching/geopoint/Viewport.java
index 67aed2c..5080775 100644
--- a/main/src/cgeo/geocaching/geopoint/Viewport.java
+++ b/main/src/cgeo/geocaching/geopoint/Viewport.java
@@ -34,10 +34,6 @@ public class Viewport {
topRight = new Geopoint(centerLat + latHalfSpan, centerLon + lonHalfSpan);
}
- public Viewport(final double lat1, final double lat2, final double lon1, final double lon2) {
- this(new Geopoint(lat1, lon1), new Geopoint(lat2, lon2));
- }
-
public double getLatitudeMin() {
return bottomLeft.getLatitude();
}
diff --git a/tests/src/cgeo/geocaching/geopoint/ViewportTest.java b/tests/src/cgeo/geocaching/geopoint/ViewportTest.java
index bd35ae6..3ba98de 100644
--- a/tests/src/cgeo/geocaching/geopoint/ViewportTest.java
+++ b/tests/src/cgeo/geocaching/geopoint/ViewportTest.java
@@ -10,7 +10,7 @@ import java.util.Set;
public class ViewportTest extends AndroidTestCase {
- final private static Viewport vpRef = new Viewport(-1.0, 3.0, -2.0, 4.0);
+ final private static Viewport vpRef = new Viewport(new Geopoint(-1.0, 3.0), new Geopoint(-2.0, 4.0));
public static void assertBounds(final Viewport vp) {
assertEquals(new Geopoint(1.0, 1.0), vp.center);