Remove Backend.isDeleteMoveToTrash()

This property is confusing and basically unused right now.
This commit is contained in:
cketti 2023-01-26 12:07:44 +01:00
parent 679a2648c7
commit 5220c66d61
7 changed files with 1 additions and 8 deletions

View file

@ -2028,8 +2028,7 @@ public class MessagingController {
boolean isSpamFolder = account.hasSpamFolder() && account.getSpamFolderId() == folderId;
boolean doNotMoveToTrashFolder = skipTrashFolder ||
!account.hasTrashFolder() || folderId == trashFolderId ||
isSpamFolder ||
(backend.getSupportsTrashFolder() && !backend.isDeleteMoveToTrash());
isSpamFolder;
LocalFolder localTrashFolder = null;
if (doNotMoveToTrashFolder) {

View file

@ -15,7 +15,6 @@ interface Backend {
val supportsTrashFolder: Boolean
val supportsSearchByDate: Boolean
val isPushCapable: Boolean
val isDeleteMoveToTrash: Boolean
@Throws(MessagingException::class)
fun refreshFolderList()

View file

@ -36,7 +36,6 @@ class DemoBackend(private val backendStorage: BackendStorage) : Backend {
override val supportsTrashFolder: Boolean = true
override val supportsSearchByDate: Boolean = false
override val isPushCapable: Boolean = false
override val isDeleteMoveToTrash: Boolean = true
override fun refreshFolderList() {
val localFolderServerIds = backendStorage.getFolderServerIds().toSet()

View file

@ -45,7 +45,6 @@ class ImapBackend(
override val supportsTrashFolder = true
override val supportsSearchByDate = true
override val isPushCapable = true
override val isDeleteMoveToTrash = true
override fun refreshFolderList() {
commandRefreshFolderList.refreshFolderList()

View file

@ -39,7 +39,6 @@ class JmapBackend(
override val supportsTrashFolder = true
override val supportsSearchByDate = true
override val isPushCapable = false // FIXME
override val isDeleteMoveToTrash = true
override fun refreshFolderList() {
commandRefreshFolderList.refreshFolderList()

View file

@ -32,7 +32,6 @@ class Pop3Backend(
override val supportsTrashFolder = false
override val supportsSearchByDate = false
override val isPushCapable = false
override val isDeleteMoveToTrash = false
override fun refreshFolderList() {
commandRefreshFolderList.refreshFolderList()

View file

@ -34,7 +34,6 @@ class WebDavBackend(
override val supportsTrashFolder = true
override val supportsSearchByDate = false
override val isPushCapable = false
override val isDeleteMoveToTrash = true
override fun refreshFolderList() {
commandGetFolders.refreshFolderList()