From 584cdb8c64f70c5c16b9f9d74580088a9469b100 Mon Sep 17 00:00:00 2001 From: cketti Date: Mon, 6 May 2024 19:11:05 +0200 Subject: [PATCH] Remove now unused `Backend.expungeMessages()` --- backend/api/src/main/java/com/fsck/k9/backend/api/Backend.kt | 3 --- .../demo/src/main/java/app/k9mail/backend/demo/DemoBackend.kt | 4 ---- .../src/main/java/com/fsck/k9/backend/imap/ImapBackend.kt | 4 ---- .../src/main/java/com/fsck/k9/backend/jmap/JmapBackend.kt | 4 ---- .../src/main/java/com/fsck/k9/backend/pop3/Pop3Backend.kt | 4 ---- 5 files changed, 19 deletions(-) diff --git a/backend/api/src/main/java/com/fsck/k9/backend/api/Backend.kt b/backend/api/src/main/java/com/fsck/k9/backend/api/Backend.kt index 7dcfdce08..3c3bdcda0 100644 --- a/backend/api/src/main/java/com/fsck/k9/backend/api/Backend.kt +++ b/backend/api/src/main/java/com/fsck/k9/backend/api/Backend.kt @@ -41,9 +41,6 @@ interface Backend { @Throws(MessagingException::class) fun expunge(folderServerId: String) - @Throws(MessagingException::class) - fun expungeMessages(folderServerId: String, messageServerIds: List) - @Throws(MessagingException::class) fun deleteMessages(folderServerId: String, messageServerIds: List) diff --git a/backend/demo/src/main/java/app/k9mail/backend/demo/DemoBackend.kt b/backend/demo/src/main/java/app/k9mail/backend/demo/DemoBackend.kt index 00305fac7..ae148141f 100644 --- a/backend/demo/src/main/java/app/k9mail/backend/demo/DemoBackend.kt +++ b/backend/demo/src/main/java/app/k9mail/backend/demo/DemoBackend.kt @@ -104,10 +104,6 @@ class DemoBackend(private val backendStorage: BackendStorage) : Backend { throw UnsupportedOperationException("not implemented") } - override fun expungeMessages(folderServerId: String, messageServerIds: List) { - throw UnsupportedOperationException("not implemented") - } - override fun deleteMessages(folderServerId: String, messageServerIds: List) = Unit override fun deleteAllMessages(folderServerId: String) = Unit diff --git a/backend/imap/src/main/java/com/fsck/k9/backend/imap/ImapBackend.kt b/backend/imap/src/main/java/com/fsck/k9/backend/imap/ImapBackend.kt index b32614320..be6cbac03 100644 --- a/backend/imap/src/main/java/com/fsck/k9/backend/imap/ImapBackend.kt +++ b/backend/imap/src/main/java/com/fsck/k9/backend/imap/ImapBackend.kt @@ -80,10 +80,6 @@ class ImapBackend( commandExpunge.expunge(folderServerId) } - override fun expungeMessages(folderServerId: String, messageServerIds: List) { - commandExpunge.expungeMessages(folderServerId, messageServerIds) - } - override fun deleteMessages(folderServerId: String, messageServerIds: List) { commandDelete.deleteMessages(folderServerId, messageServerIds) } diff --git a/backend/jmap/src/main/java/com/fsck/k9/backend/jmap/JmapBackend.kt b/backend/jmap/src/main/java/com/fsck/k9/backend/jmap/JmapBackend.kt index d916eadc7..a2f3c42c7 100644 --- a/backend/jmap/src/main/java/com/fsck/k9/backend/jmap/JmapBackend.kt +++ b/backend/jmap/src/main/java/com/fsck/k9/backend/jmap/JmapBackend.kt @@ -72,10 +72,6 @@ class JmapBackend( throw UnsupportedOperationException("not implemented") } - override fun expungeMessages(folderServerId: String, messageServerIds: List) { - throw UnsupportedOperationException("not implemented") - } - override fun deleteMessages(folderServerId: String, messageServerIds: List) { commandDelete.deleteMessages(messageServerIds) } diff --git a/backend/pop3/src/main/java/com/fsck/k9/backend/pop3/Pop3Backend.kt b/backend/pop3/src/main/java/com/fsck/k9/backend/pop3/Pop3Backend.kt index 804ec655f..94ad0b1d9 100644 --- a/backend/pop3/src/main/java/com/fsck/k9/backend/pop3/Pop3Backend.kt +++ b/backend/pop3/src/main/java/com/fsck/k9/backend/pop3/Pop3Backend.kt @@ -66,10 +66,6 @@ class Pop3Backend( throw UnsupportedOperationException("not supported") } - override fun expungeMessages(folderServerId: String, messageServerIds: List) { - throw UnsupportedOperationException("not supported") - } - override fun deleteMessages(folderServerId: String, messageServerIds: List) { commandSetFlag.setFlag(folderServerId, messageServerIds, Flag.DELETED, true) }