diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2012-04-10 22:36:21 +0200 |
---|---|---|
committer | Samuel Tardieu <sam@rfc1149.net> | 2012-04-11 15:50:54 +0200 |
commit | 1600e5c513e14d9a3ab1a76688572f36cd73d938 (patch) | |
tree | 0fe05fa3473d7dc15634d66f6e8741dc86e8e963 /main/src/cgeo/geocaching/Settings.java | |
parent | 4b5d28aa82b67a46883e4c905532a690a2e603fa (diff) | |
download | cgeo-1600e5c513e14d9a3ab1a76688572f36cd73d938.zip cgeo-1600e5c513e14d9a3ab1a76688572f36cd73d938.tar.gz cgeo-1600e5c513e14d9a3ab1a76688572f36cd73d938.tar.bz2 |
Move two methods into the tests
Those two methods were only used in the tests. They can be rewritten
more concisely while testing the same thing.
Diffstat (limited to 'main/src/cgeo/geocaching/Settings.java')
-rw-r--r-- | main/src/cgeo/geocaching/Settings.java | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/main/src/cgeo/geocaching/Settings.java b/main/src/cgeo/geocaching/Settings.java index 92e96aa..31452af 100644 --- a/main/src/cgeo/geocaching/Settings.java +++ b/main/src/cgeo/geocaching/Settings.java @@ -9,7 +9,6 @@ import cgeo.geocaching.utils.CryptUtils; import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.tuple.ImmutablePair; -import org.mapsforge.android.maps.MapDatabase; import android.content.Context; import android.content.SharedPreferences; @@ -371,17 +370,6 @@ public final class Settings { return commitResult; } - public static boolean isValidMapFile() { - return checkMapfile(getMapFile()); - } - - private static boolean checkMapfile(final String mapFileIn) { - if (null == mapFileIn) { - return false; - } - return MapDatabase.isValidMapFile(mapFileIn); - } - public static coordInputFormatEnum getCoordInputFormat() { return coordInputFormatEnum.fromInt(sharedPrefs.getInt(KEY_COORD_INPUT_FORMAT, 0)); } |