aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2012-03-09 06:28:55 +0100
committerBananeweizen <bananeweizen@gmx.de>2012-03-09 06:28:55 +0100
commitd04d03c7d146547069329381f7e6c4f1bb6eefa7 (patch)
treeae90a00dcdff83dff1b7da0bf8a008fc198a96f4 /main/src/cgeo/geocaching
parent6f2e70e5512704f79df0da6cfbad28cd00504530 (diff)
downloadcgeo-d04d03c7d146547069329381f7e6c4f1bb6eefa7.zip
cgeo-d04d03c7d146547069329381f7e6c4f1bb6eefa7.tar.gz
cgeo-d04d03c7d146547069329381f7e6c4f1bb6eefa7.tar.bz2
refactoring: log exceptions, remove unused method
Diffstat (limited to 'main/src/cgeo/geocaching')
-rw-r--r--main/src/cgeo/geocaching/connector/gc/GCConnector.java11
1 files changed, 2 insertions, 9 deletions
diff --git a/main/src/cgeo/geocaching/connector/gc/GCConnector.java b/main/src/cgeo/geocaching/connector/gc/GCConnector.java
index 95e4921..0e9ef1f 100644
--- a/main/src/cgeo/geocaching/connector/gc/GCConnector.java
+++ b/main/src/cgeo/geocaching/connector/gc/GCConnector.java
@@ -8,7 +8,6 @@ import cgeo.geocaching.cgCache;
import cgeo.geocaching.cgeoapplication;
import cgeo.geocaching.connector.AbstractConnector;
import cgeo.geocaching.enumerations.StatusCode;
-import cgeo.geocaching.geopoint.Geopoint;
import cgeo.geocaching.geopoint.Viewport;
import cgeo.geocaching.network.Parameters;
import cgeo.geocaching.utils.CancellableHandler;
@@ -107,7 +106,7 @@ public class GCConnector extends AbstractConnector {
final String page = cgBase.requestLogged("http://www.geocaching.com/seek/cache_details.aspx", params, false, false, false);
if (StringUtils.isEmpty(page)) {
- SearchResult search = new SearchResult();
+ final SearchResult search = new SearchResult();
if (app.isThere(geocode, guid, true, false)) {
if (StringUtils.isBlank(geocode) && StringUtils.isNotBlank(guid)) {
Log.i(Settings.tag, "Loading old cache from cache.");
@@ -132,18 +131,12 @@ public class GCConnector extends AbstractConnector {
return searchResult;
}
- SearchResult search = searchResult.filterSearchResults(false, false, Settings.getCacheType());
+ final SearchResult search = searchResult.filterSearchResults(false, false, Settings.getCacheType());
return search;
}
@Override
- public SearchResult searchByCoordinate(Geopoint center) {
- // TODO Auto-generated method stub
- return super.searchByCoordinate(center);
- }
-
- @Override
public SearchResult searchByViewport(Viewport viewport, String[] tokens) {
return GCBase.searchByViewport(viewport, tokens);
}