aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/cgCache.java
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2011-09-28 16:17:44 +0200
committerSamuel Tardieu <sam@rfc1149.net>2011-09-28 16:17:44 +0200
commit742831d726d2065eafeec94172d0c3a0faccf47a (patch)
treebb34477c5df7ec1d8ae87caddeac17fbb5a5656b /main/src/cgeo/geocaching/cgCache.java
parentb7b78d477c13ca2bdacdfbe8ccfb5e573f0536f8 (diff)
downloadcgeo-742831d726d2065eafeec94172d0c3a0faccf47a.zip
cgeo-742831d726d2065eafeec94172d0c3a0faccf47a.tar.gz
cgeo-742831d726d2065eafeec94172d0c3a0faccf47a.tar.bz2
Remove latitudeString and longitudeString fields
Those fields can be resynthesized if needed from the cache coordinates.
Diffstat (limited to 'main/src/cgeo/geocaching/cgCache.java')
-rw-r--r--main/src/cgeo/geocaching/cgCache.java12
1 files changed, 2 insertions, 10 deletions
diff --git a/main/src/cgeo/geocaching/cgCache.java b/main/src/cgeo/geocaching/cgCache.java
index 0b82da9..c821e28 100644
--- a/main/src/cgeo/geocaching/cgCache.java
+++ b/main/src/cgeo/geocaching/cgCache.java
@@ -53,8 +53,6 @@ public class cgCache implements ICache {
public Float direction = null;
public Float distance = null;
public String latlon = "";
- public String latitudeString = "";
- public String longitudeString = "";
public String location = "";
public Geopoint coords = null;
public boolean reliableLatLon = false;
@@ -157,12 +155,6 @@ public class cgCache implements ICache {
if (StringUtils.isBlank(latlon)) {
latlon = other.latlon;
}
- if (StringUtils.isBlank(latitudeString)) {
- latitudeString = other.latitudeString;
- }
- if (StringUtils.isBlank(longitudeString)) {
- longitudeString = other.longitudeString;
- }
if (StringUtils.isBlank(location)) {
location = other.location;
}
@@ -387,12 +379,12 @@ public class cgCache implements ICache {
@Override
public String getLatitude() {
- return latitudeString;
+ return coords != null ? cgBase.formatLatitude(coords.getLatitude(), true) : null;
}
@Override
public String getLongitude() {
- return longitudeString;
+ return coords != null ? cgBase.formatLongitude(coords.getLongitude(), true) : null;
}
@Override