Remove unused function

This commit is contained in:
davide 2022-08-16 11:19:56 +02:00
parent f624a35fe2
commit 0556500c5d

View File

@ -92,21 +92,6 @@ class RepositoryImpl(private val api: SelfossApi, private val apiDetails: ApiDet
items.sortByDescending { dateUtils.parseDate(it.datetime) }
}
private fun filterSelectedItems(items: ArrayList<SelfossModel.Item>): ArrayList<SelfossModel.Item> {
val tmpItems = items
if (displayedItems == ItemType.UNREAD) {
tmpItems.removeAll { !it.unread }
} else if (displayedItems == ItemType.STARRED) {
tmpItems.removeAll { !it.starred }
}
if (tagFilter != null) {
tmpItems.removeAll { !it.tags.contains(tagFilter!!.tag) }
}
return tmpItems
}
override suspend fun reloadBadges(): Boolean {
// TODO: Check connectivity, calculate from DB
var success = false