From be106c21a10abd7e98fadcc7f74e26a4b6a77c02 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Sun, 13 Feb 2011 18:52:42 -0500 Subject: [PATCH] remove completely redundant code from batch archive/spam codepaths. (It duplicated code in the batch move codepath) --- src/com/fsck/k9/activity/MessageList.java | 34 ----------------------- 1 file changed, 34 deletions(-) diff --git a/src/com/fsck/k9/activity/MessageList.java b/src/com/fsck/k9/activity/MessageList.java index 5562c88d1..0a511824a 100644 --- a/src/com/fsck/k9/activity/MessageList.java +++ b/src/com/fsck/k9/activity/MessageList.java @@ -2701,23 +2701,6 @@ public class MessageList } private void onArchiveBatch() { - if (!mController.isMoveCapable(mAccount)) { - return; - } - - synchronized (mAdapter.messages) { - for (MessageInfoHolder holder : mAdapter.messages) { - if (holder.selected) { - Message message = holder.message; - if (!mController.isMoveCapable(message)) { - Toast toast = Toast.makeText(this, R.string.move_copy_cannot_copy_unsynced_message, Toast.LENGTH_LONG); - toast.show(); - return; - } - } - } - } - String folderName = mAccount.getArchiveFolderName(); if (K9.FOLDER_NONE.equalsIgnoreCase(folderName)) { return; @@ -2726,23 +2709,6 @@ public class MessageList } private void onSpamBatch() { - if (!mController.isMoveCapable(mAccount)) { - return; - } - - synchronized (mAdapter.messages) { - for (MessageInfoHolder holder : mAdapter.messages) { - if (holder.selected) { - Message message = holder.message; - if (!mController.isMoveCapable(message)) { - Toast toast = Toast.makeText(this, R.string.move_copy_cannot_copy_unsynced_message, Toast.LENGTH_LONG); - toast.show(); - return; - } - } - } - } - String folderName = mAccount.getSpamFolderName(); if (K9.FOLDER_NONE.equalsIgnoreCase(folderName)) { return;