aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/sorting/AbstractCacheComparator.java
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/cgeo/geocaching/sorting/AbstractCacheComparator.java')
-rw-r--r--main/src/cgeo/geocaching/sorting/AbstractCacheComparator.java19
1 files changed, 0 insertions, 19 deletions
diff --git a/main/src/cgeo/geocaching/sorting/AbstractCacheComparator.java b/main/src/cgeo/geocaching/sorting/AbstractCacheComparator.java
index a23d135..a1c04a4 100644
--- a/main/src/cgeo/geocaching/sorting/AbstractCacheComparator.java
+++ b/main/src/cgeo/geocaching/sorting/AbstractCacheComparator.java
@@ -1,8 +1,6 @@
package cgeo.geocaching.sorting;
-import cgeo.geocaching.DataStore;
import cgeo.geocaching.Geocache;
-import cgeo.geocaching.enumerations.LogType;
import cgeo.geocaching.utils.Log;
@@ -48,21 +46,4 @@ public abstract class AbstractCacheComparator implements CacheComparator {
*/
protected abstract int compareCaches(final Geocache cache1, final Geocache cache2);
- /**
- * Get number of overall finds for a cache.
- *
- * @param cache
- * @return
- */
- protected static int getFindsCount(Geocache cache) {
- if (cache.getLogCounts().isEmpty()) {
- cache.setLogCounts(DataStore.loadLogCounts(cache.getGeocode()));
- }
- Integer logged = cache.getLogCounts().get(LogType.FOUND_IT);
- if (logged != null) {
- return logged;
- }
- return 0;
- }
-
}