diff options
| author | blafoo <github@blafoo.de> | 2012-01-11 20:24:13 +0100 |
|---|---|---|
| committer | blafoo <github@blafoo.de> | 2012-01-11 20:24:13 +0100 |
| commit | 7e21dc4dbd9e89ad8a6a44c66ba9c9fb06063ee2 (patch) | |
| tree | b0434db5eeee05a3c2dbf0d507086602cbec2ec0 /main | |
| parent | 943ae4421d1363fb465367250b9eb96b8944da08 (diff) | |
| download | cgeo-7e21dc4dbd9e89ad8a6a44c66ba9c9fb06063ee2.zip cgeo-7e21dc4dbd9e89ad8a6a44c66ba9c9fb06063ee2.tar.gz cgeo-7e21dc4dbd9e89ad8a6a44c66ba9c9fb06063ee2.tar.bz2 | |
Removed unnecessary method
Diffstat (limited to 'main')
| -rw-r--r-- | main/src/cgeo/geocaching/cgBase.java | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/main/src/cgeo/geocaching/cgBase.java b/main/src/cgeo/geocaching/cgBase.java index a1c681e..160e552 100644 --- a/main/src/cgeo/geocaching/cgBase.java +++ b/main/src/cgeo/geocaching/cgBase.java @@ -947,8 +947,6 @@ public class cgBase { } } - checkFields(cache); - // cache personal note cache.setPersonalNote(BaseUtils.getMatch(page, GCConstants.PATTERN_PERSONALNOTE, true, cache.getPersonalNote())); @@ -1322,48 +1320,6 @@ public class cgBase { return logs; } - private static void checkFields(cgCache cache) { - if (StringUtils.isBlank(cache.getGeocode())) { - Log.e(Settings.tag, "cgBase.loadLogsFromDetails: geo code not parsed correctly"); - } - if (StringUtils.isBlank(cache.getName())) { - Log.e(Settings.tag, "name not parsed correctly"); - } - if (StringUtils.isBlank(cache.getGuid())) { - Log.e(Settings.tag, "guid not parsed correctly"); - } - if (cache.getTerrain() == 0.0) { - Log.e(Settings.tag, "terrain not parsed correctly"); - } - if (cache.getDifficulty() == 0.0) { - Log.e(Settings.tag, "difficulty not parsed correctly"); - } - if (StringUtils.isBlank(cache.getOwner())) { - Log.e(Settings.tag, "owner not parsed correctly"); - } - if (StringUtils.isBlank(cache.getOwnerReal())) { - Log.e(Settings.tag, "owner real not parsed correctly"); - } - if (cache.getHiddenDate() == null) { - Log.e(Settings.tag, "hidden not parsed correctly"); - } - if (cache.getFavoritePoints() < 0) { - Log.e(Settings.tag, "favoriteCount not parsed correctly"); - } - if (cache.getSize() == null) { - Log.e(Settings.tag, "size not parsed correctly"); - } - if (cache.getType() == null || cache.getType() == CacheType.UNKNOWN) { - Log.e(Settings.tag, "type not parsed correctly"); - } - if (cache.getCoords() == null) { - Log.e(Settings.tag, "coordinates not parsed correctly"); - } - if (StringUtils.isBlank(cache.getLocation())) { - Log.e(Settings.tag, "location not parsed correctly"); - } - } - public static Date parseGcCustomDate(final String input, final String format) throws ParseException { if (StringUtils.isBlank(input)) { throw new ParseException("Input is null", 0); |
