diff options
author | Bananeweizen <bananeweizen@gmx.de> | 2012-05-04 16:59:00 +0200 |
---|---|---|
committer | Bananeweizen <bananeweizen@gmx.de> | 2012-05-04 16:59:00 +0200 |
commit | 8f7c6b683f23356864a7b6a94a4071c4614b24db (patch) | |
tree | e56d2a9ac7ba893081c380557ae94a355923b8c5 /main/src/cgeo/geocaching | |
parent | 54d11ddd78a9a61f9685ce8a3fa89c826dfaeb61 (diff) | |
download | cgeo-8f7c6b683f23356864a7b6a94a4071c4614b24db.zip cgeo-8f7c6b683f23356864a7b6a94a4071c4614b24db.tar.gz cgeo-8f7c6b683f23356864a7b6a94a4071c4614b24db.tar.bz2 |
refactoring: remove unused code
Diffstat (limited to 'main/src/cgeo/geocaching')
-rw-r--r-- | main/src/cgeo/geocaching/StaticMapsProvider.java | 10 | ||||
-rw-r--r-- | main/src/cgeo/geocaching/cgData.java | 17 | ||||
-rw-r--r-- | main/src/cgeo/geocaching/cgeoapplication.java | 5 | ||||
-rw-r--r-- | main/src/cgeo/geocaching/compatibility/Compatibility.java | 9 | ||||
-rw-r--r-- | main/src/cgeo/geocaching/connector/gc/GCBase.java | 2 |
5 files changed, 0 insertions, 43 deletions
diff --git a/main/src/cgeo/geocaching/StaticMapsProvider.java b/main/src/cgeo/geocaching/StaticMapsProvider.java index fa5c32f..691516f 100644 --- a/main/src/cgeo/geocaching/StaticMapsProvider.java +++ b/main/src/cgeo/geocaching/StaticMapsProvider.java @@ -181,16 +181,6 @@ public class StaticMapsProvider { return MARKERS_URL + "marker_waypoint_" + type + ".png"; } - public static void removeCacheStaticMaps(String geocode) { - for (int level = 1; level <= 5; level++) { - try { - StaticMapsProvider.getMapFile(geocode, "", level, false).delete(); - } catch (Exception e) { - Log.e("StaticMapsProvider.removeCacheStaticMaps: " + e.toString()); - } - } - } - public static void removeWpStaticMaps(int wp_id, String geocode) { for (int level = 1; level <= 5; level++) { try { diff --git a/main/src/cgeo/geocaching/cgData.java b/main/src/cgeo/geocaching/cgData.java index 19918a3..b3b2ad3 100644 --- a/main/src/cgeo/geocaching/cgData.java +++ b/main/src/cgeo/geocaching/cgData.java @@ -2427,23 +2427,6 @@ public class cgData { Log.d("Database clean: finished"); } - /** - * Drop stored list by putting the caches in automatic mode (listId = 0) - * - * @param listId - * the list id to remove the caches from - */ - public void dropList(int listId) { - init(); - try { - final ContentValues values = new ContentValues(); - values.put("reason", StoredList.TEMPORARY_LIST_ID); - databaseRW.update(dbTableCaches, values, "reason = ?", new String[] { Integer.toString(listId) }); - } catch (Exception e) { - Log.e("cgData.dropList: error when updating reason", e); - } - } - public void removeAllFromCache() { // clean up CacheCache cacheCache.removeAllFromCache(); diff --git a/main/src/cgeo/geocaching/cgeoapplication.java b/main/src/cgeo/geocaching/cgeoapplication.java index e1e67e4..94285b4 100644 --- a/main/src/cgeo/geocaching/cgeoapplication.java +++ b/main/src/cgeo/geocaching/cgeoapplication.java @@ -307,11 +307,6 @@ public class cgeoapplication extends Application { return storage.saveTrackable(trackable); } - /** {@link cgData#dropList(int)} **/ - public void dropList(int listId) { - storage.dropList(listId); - } - /** {@link cgData#loadLogCounts(String)} */ public Map<LogType, Integer> loadLogCounts(String geocode) { return storage.loadLogCounts(geocode); diff --git a/main/src/cgeo/geocaching/compatibility/Compatibility.java b/main/src/cgeo/geocaching/compatibility/Compatibility.java index 6086604..e646348 100644 --- a/main/src/cgeo/geocaching/compatibility/Compatibility.java +++ b/main/src/cgeo/geocaching/compatibility/Compatibility.java @@ -8,7 +8,6 @@ import org.apache.commons.lang3.reflect.MethodUtils; import android.app.Activity; import android.content.Intent; import android.content.res.Configuration; -import android.net.Uri; import android.os.Build; import android.text.InputType; import android.view.Display; @@ -66,14 +65,6 @@ public final class Compatibility { return directionNowPre; } - public static Uri getCalendarProviderURI() { - return Uri.parse(isLevel8 ? "content://com.android.calendar/calendars" : "content://calendar/calendars"); - } - - public static Uri getCalenderEventsProviderURI() { - return Uri.parse(isLevel8 ? "content://com.android.calendar/events" : "content://calendar/events"); - } - public static void dataChanged(final String name) { level8.dataChanged(name); } diff --git a/main/src/cgeo/geocaching/connector/gc/GCBase.java b/main/src/cgeo/geocaching/connector/gc/GCBase.java index d7f6241..64e5875 100644 --- a/main/src/cgeo/geocaching/connector/gc/GCBase.java +++ b/main/src/cgeo/geocaching/connector/gc/GCBase.java @@ -48,8 +48,6 @@ import java.util.Set; public class GCBase { protected final static String SEQUENCE_GCID = "0123456789ABCDEFGHJKMNPQRTVWXYZ"; - protected final static String SEQUENCE_NEWID = "tHpXJR8gyfzCrdV5G0Kb3Y92N47lTBPAhWnvLZkaexmSwq6sojDcEQMFO"; - protected final static long GC_BASE57 = 57; protected final static long GC_BASE31 = 31; protected final static long GC_BASE16 = 16; |