Remove unused methods from SearchDao
This commit is contained in:
parent
f88f71e5ee
commit
a4b9a7260a
@ -61,15 +61,10 @@ interface SearchDao {
|
|||||||
limit: Int,
|
limit: Int,
|
||||||
): Flow<List<SavedSearchableEntity>>
|
): Flow<List<SavedSearchableEntity>>
|
||||||
|
|
||||||
@Query("SELECT `key` FROM Searchable WHERE hidden = 1 AND `key` LIKE 'calendar://%'")
|
@Query("SELECT `key` FROM Searchable WHERE hidden = 1 AND type = 'calendar'")
|
||||||
fun getHiddenCalendarEventKeys(): Flow<List<String>>
|
fun getHiddenCalendarEventKeys(): Flow<List<String>>
|
||||||
|
|
||||||
|
|
||||||
@Query("SELECT COUNT(key) as count FROM Searchable WHERE pinned = 1;")
|
|
||||||
fun getPinCount(): Int
|
|
||||||
|
|
||||||
@Query("SELECT * FROM Searchable WHERE pinned = 0 AND launchCount > 0 AND hidden = 0 AND NOT `key` LIKE 'calendar://%' ORDER BY launchCount DESC LIMIT :count")
|
|
||||||
fun getAutoFavorites(count: Int): List<SavedSearchableEntity>
|
|
||||||
|
|
||||||
@Query("DELETE FROM Searchable WHERE `key` IN (:keys)")
|
@Query("DELETE FROM Searchable WHERE `key` IN (:keys)")
|
||||||
fun deleteAll(keys: List<String>)
|
fun deleteAll(keys: List<String>)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user