move method around

This commit is contained in:
Athou
2013-07-23 16:32:20 +02:00
parent d95e1522d8
commit 08693e16f0
2 changed files with 7 additions and 14 deletions

View File

@@ -41,7 +41,6 @@ import com.commafeed.backend.model.Models;
import com.commafeed.backend.model.User;
import com.commafeed.backend.model.UserSettings.ReadingOrder;
import com.commafeed.backend.services.ApplicationSettingsService;
import com.google.api.client.util.Maps;
import com.google.common.collect.Iterables;
import com.google.common.collect.Lists;
@@ -278,17 +277,6 @@ public class FeedEntryStatusDAO extends GenericDAO<FeedEntryStatus> {
return count;
}
/**
* Map between subscriptionId and unread count
*/
public Map<Long, Long> getUnreadCount(List<FeedSubscription> subscriptions) {
Map<Long, Long> map = Maps.newHashMap();
for (FeedSubscription sub : subscriptions) {
map.put(sub.getId(), getUnreadCount(sub));
}
return map;
}
private List<FeedEntryStatus> lazyLoadContent(boolean includeContent,
List<FeedEntryStatus> results) {
if (includeContent) {