diff --git a/app/src/main/java/io/legado/app/data/dao/ReplaceRuleDao.kt b/app/src/main/java/io/legado/app/data/dao/ReplaceRuleDao.kt index 5940272af..e57a2251b 100644 --- a/app/src/main/java/io/legado/app/data/dao/ReplaceRuleDao.kt +++ b/app/src/main/java/io/legado/app/data/dao/ReplaceRuleDao.kt @@ -32,15 +32,6 @@ interface ReplaceRuleDao { @Query("SELECT * FROM replace_rules WHERE id in (:ids)") fun findByIds(vararg ids: Long): List - @Query("update replace_rules set isEnabled = 1 where id in (:ids)") - fun enableSection(vararg ids: Long) - - @Query("update replace_rules set isEnabled = 0 where id in (:ids)") - fun disableSection(vararg ids: Long) - - @Query("delete from replace_rules where id in (:ids)") - fun delSection(vararg ids: Long) - @Query( """SELECT * FROM replace_rules WHERE isEnabled = 1 AND (scope LIKE '%' || :scope || '%' or scope = null or scope = '')"""