fix: remove dead deleteFirstQueueItem from WallpaperQueueDao
This position-based delete was superseded by deleteQueueItem (which deletes by wallpaperId) and has zero call sites. Removing it eliminates confusion about which dequeue strategy is active. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
8d945a63a4
commit
6d8a9a9302
1 file changed
-11
@@ -68,17 +68,6 @@ interface WallpaperQueueDao {
|
||||
""")
|
||||
suspend fun deleteQueueItem(albumId: String, screenType: ScreenType, wallpaperId: String)
|
||||
|
||||
@Query("""
|
||||
DELETE FROM wallpaper_queue
|
||||
WHERE albumId = :albumId AND screenType = :screenType
|
||||
AND queuePosition = (
|
||||
SELECT MIN(queuePosition)
|
||||
FROM wallpaper_queue
|
||||
WHERE albumId = :albumId AND screenType = :screenType
|
||||
)
|
||||
""")
|
||||
suspend fun deleteFirstQueueItem(albumId: String, screenType: ScreenType)
|
||||
|
||||
/**
|
||||
* Clear queue for album and screen type
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user