srctree

Robin Linden parent b4bd7b2f d700c686
Remove unused delete method from UserDao

inlinesplit
core/src/main/kotlin/db/UserDao.kt added: 1, removed: 5, total 0
@@ -1,7 +1,6 @@
package ltd.evilcorp.core.db
 
import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
@@ -31,9 +30,6 @@ interface UserDao {
@Query("UPDATE users SET status = :status WHERE public_key == :publicKey")
fun updateStatus(publicKey: String, status: UserStatus)
 
@Delete
fun delete(user: User)
 
@Query("SELECT COUNT(*) FROM users WHERE public_key = :publicKey")
fun exists(publicKey: String): Boolean