aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/connector/ConnectorFactory.java
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2012-05-05 10:31:30 +0200
committerBananeweizen <bananeweizen@gmx.de>2012-05-05 10:31:30 +0200
commit057f24b4f57dadeeba92a04c83e3bcd790e983b1 (patch)
tree23464d3fd6a16c6ede3206bc39ed4b2e16d0419c /main/src/cgeo/geocaching/connector/ConnectorFactory.java
parent84c6bd6cc358b2cde2926a62990e4c151c47d6d1 (diff)
downloadcgeo-057f24b4f57dadeeba92a04c83e3bcd790e983b1.zip
cgeo-057f24b4f57dadeeba92a04c83e3bcd790e983b1.tar.gz
cgeo-057f24b4f57dadeeba92a04c83e3bcd790e983b1.tar.bz2
refactoring: more cleanup in connector interfaces
* switch from method overrides to interface detection for connector features * remove GCBase and put code into other classes * reduce GC specific code being used in general activities
Diffstat (limited to 'main/src/cgeo/geocaching/connector/ConnectorFactory.java')
-rw-r--r--main/src/cgeo/geocaching/connector/ConnectorFactory.java17
1 files changed, 0 insertions, 17 deletions
diff --git a/main/src/cgeo/geocaching/connector/ConnectorFactory.java b/main/src/cgeo/geocaching/connector/ConnectorFactory.java
index fc8ef45..784a54e 100644
--- a/main/src/cgeo/geocaching/connector/ConnectorFactory.java
+++ b/main/src/cgeo/geocaching/connector/ConnectorFactory.java
@@ -6,13 +6,10 @@ import cgeo.geocaching.connector.gc.GCConnector;
import cgeo.geocaching.connector.oc.OCApiConnector;
import cgeo.geocaching.connector.oc.OCConnector;
import cgeo.geocaching.connector.ox.OXConnector;
-import cgeo.geocaching.geopoint.Geopoint;
import cgeo.geocaching.geopoint.Viewport;
import org.apache.commons.lang3.StringUtils;
-import java.util.Set;
-
public final class ConnectorFactory {
private static final UnknownConnector UNKNOWN_CONNECTOR = new UnknownConnector();
private static final IConnector[] connectors = new IConnector[] {
@@ -70,13 +67,6 @@ public final class ConnectorFactory {
return StringUtils.isBlank(geocode) || !Character.isLetterOrDigit(geocode.charAt(0));
}
- /** @see IConnector#searchByCoordinate */
- public static SearchResult searchByCoordinate(final Geopoint center) {
- // We have only connector capable of doing a 'searchByCoordinate()'
- // If there is a second connector the information has to be collected from all collectors
- return GCConnector.getInstance().searchByCoordinate(center);
- }
-
/** @see IConnector#searchByViewport */
public static SearchResult searchByViewport(final Viewport viewport, final String[] tokens) {
// We have only connector capable of doing a 'searchByViewport()'
@@ -84,11 +74,4 @@ public final class ConnectorFactory {
return GCConnector.getInstance().searchByViewport(viewport, tokens);
}
- /** @see IConnector#searchByGeocodes */
- public static SearchResult searchByGeocodes(final Set<String> geocodes) {
- // We have only connector capable of doing a 'searchByViewport()'
- // If there is a second connector the information has to be collected from all collectors
- return GCConnector.getInstance().searchByGeocodes(geocodes);
- }
-
}