aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/sorting/PopularityRatioComparator.java
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/cgeo/geocaching/sorting/PopularityRatioComparator.java')
-rw-r--r--main/src/cgeo/geocaching/sorting/PopularityRatioComparator.java13
1 files changed, 0 insertions, 13 deletions
diff --git a/main/src/cgeo/geocaching/sorting/PopularityRatioComparator.java b/main/src/cgeo/geocaching/sorting/PopularityRatioComparator.java
index b5edf17..2c42146 100644
--- a/main/src/cgeo/geocaching/sorting/PopularityRatioComparator.java
+++ b/main/src/cgeo/geocaching/sorting/PopularityRatioComparator.java
@@ -3,9 +3,7 @@
*/
package cgeo.geocaching.sorting;
-import cgeo.geocaching.DataStore;
import cgeo.geocaching.Geocache;
-import cgeo.geocaching.enumerations.LogType;
/**
* sorts caches by popularity ratio (favorites per find in %).
@@ -41,15 +39,4 @@ public class PopularityRatioComparator extends AbstractCacheComparator {
return 0;
}
-
- private 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;
- }
}