Remove now unused Backend.expungeMessages()

This commit is contained in:
cketti 2024-05-06 19:11:05 +02:00
parent 8fa8fa50c8
commit 584cdb8c64
5 changed files with 0 additions and 19 deletions

View file

@ -41,9 +41,6 @@ interface Backend {
@Throws(MessagingException::class)
fun expunge(folderServerId: String)
@Throws(MessagingException::class)
fun expungeMessages(folderServerId: String, messageServerIds: List<String>)
@Throws(MessagingException::class)
fun deleteMessages(folderServerId: String, messageServerIds: List<String>)

View file

@ -104,10 +104,6 @@ class DemoBackend(private val backendStorage: BackendStorage) : Backend {
throw UnsupportedOperationException("not implemented")
}
override fun expungeMessages(folderServerId: String, messageServerIds: List<String>) {
throw UnsupportedOperationException("not implemented")
}
override fun deleteMessages(folderServerId: String, messageServerIds: List<String>) = Unit
override fun deleteAllMessages(folderServerId: String) = Unit

View file

@ -80,10 +80,6 @@ class ImapBackend(
commandExpunge.expunge(folderServerId)
}
override fun expungeMessages(folderServerId: String, messageServerIds: List<String>) {
commandExpunge.expungeMessages(folderServerId, messageServerIds)
}
override fun deleteMessages(folderServerId: String, messageServerIds: List<String>) {
commandDelete.deleteMessages(folderServerId, messageServerIds)
}

View file

@ -72,10 +72,6 @@ class JmapBackend(
throw UnsupportedOperationException("not implemented")
}
override fun expungeMessages(folderServerId: String, messageServerIds: List<String>) {
throw UnsupportedOperationException("not implemented")
}
override fun deleteMessages(folderServerId: String, messageServerIds: List<String>) {
commandDelete.deleteMessages(messageServerIds)
}

View file

@ -66,10 +66,6 @@ class Pop3Backend(
throw UnsupportedOperationException("not supported")
}
override fun expungeMessages(folderServerId: String, messageServerIds: List<String>) {
throw UnsupportedOperationException("not supported")
}
override fun deleteMessages(folderServerId: String, messageServerIds: List<String>) {
commandSetFlag.setFlag(folderServerId, messageServerIds, Flag.DELETED, true)
}