From b3f1702e4e7e57e52402be69c10a84e5caa85f82 Mon Sep 17 00:00:00 2001 From: Samuel Tardieu Date: Sat, 10 Sep 2011 22:03:12 +0200 Subject: Factor distance parser into its own class and static method Also, match against one regexp to increase efficiency. Named constants have been used instead of hardcoded ones to convert various lengths to kilometers. --- src/cgeo/geocaching/geopoint/Geopoint.java | 1 - 1 file changed, 1 deletion(-) (limited to 'src/cgeo/geocaching/geopoint/Geopoint.java') diff --git a/src/cgeo/geocaching/geopoint/Geopoint.java b/src/cgeo/geocaching/geopoint/Geopoint.java index 4cea883..8f3d521 100644 --- a/src/cgeo/geocaching/geopoint/Geopoint.java +++ b/src/cgeo/geocaching/geopoint/Geopoint.java @@ -7,7 +7,6 @@ import android.location.Location; */ public final class Geopoint { - public static final double kmInMiles = 1 / 1.609344; public static final double deg2rad = Math.PI / 180; public static final double rad2deg = 180 / Math.PI; public static final float erad = 6371.0f; -- cgit v1.1