From 7d2804549e4994682efa6ae4d26e587e715adeca Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Sun, 29 Aug 2010 23:39:45 +0000 Subject: [PATCH] Remove redundant "return" statements from the end of void methods (with help from intellij) --- src/com/fsck/k9/activity/MessageList.java | 2 -- src/com/fsck/k9/activity/setup/AccountSetupBasics.java | 3 +-- src/com/fsck/k9/mail/store/ImapStore.java | 1 - src/com/fsck/k9/mail/store/LocalStore.java | 1 - src/com/fsck/k9/mail/store/WebDavStore.java | 1 - 5 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/com/fsck/k9/activity/MessageList.java b/src/com/fsck/k9/activity/MessageList.java index 9e595281e..2422e8d6d 100644 --- a/src/com/fsck/k9/activity/MessageList.java +++ b/src/com/fsck/k9/activity/MessageList.java @@ -425,12 +425,10 @@ public class MessageList // In multiselect mode make sure that clicking on the item results // in toggling the 'selected' checkbox. setSelected(message, !message.selected); - return; } else { onOpenMessage(message); - return; } } diff --git a/src/com/fsck/k9/activity/setup/AccountSetupBasics.java b/src/com/fsck/k9/activity/setup/AccountSetupBasics.java index 832cfcf7a..2011bf95f 100644 --- a/src/com/fsck/k9/activity/setup/AccountSetupBasics.java +++ b/src/com/fsck/k9/activity/setup/AccountSetupBasics.java @@ -271,8 +271,7 @@ public class AccountSetupBasics extends K9Activity * manual setup. */ onManualSetup(); - return; - } + } } private void onNext() diff --git a/src/com/fsck/k9/mail/store/ImapStore.java b/src/com/fsck/k9/mail/store/ImapStore.java index edfa02e3e..3b223240e 100644 --- a/src/com/fsck/k9/mail/store/ImapStore.java +++ b/src/com/fsck/k9/mail/store/ImapStore.java @@ -3220,7 +3220,6 @@ public class ImapStore extends Store catch (Exception e) { Log.e(K9.LOG_TAG, "Cannot remove EXPUNGEd messages", e); - return; } } diff --git a/src/com/fsck/k9/mail/store/LocalStore.java b/src/com/fsck/k9/mail/store/LocalStore.java index 3d7954223..a7cfab183 100644 --- a/src/com/fsck/k9/mail/store/LocalStore.java +++ b/src/com/fsck/k9/mail/store/LocalStore.java @@ -4665,7 +4665,6 @@ public class LocalStore extends Store implements Serializable if (mMessageId != null) super.setMessageId(mMessageId); mMessageDirty = false; - return; } public String getPreview() diff --git a/src/com/fsck/k9/mail/store/WebDavStore.java b/src/com/fsck/k9/mail/store/WebDavStore.java index 56ecffde3..a907da77b 100644 --- a/src/com/fsck/k9/mail/store/WebDavStore.java +++ b/src/com/fsck/k9/mail/store/WebDavStore.java @@ -2062,7 +2062,6 @@ public class WebDavStore extends Store { Log.e(K9.LOG_TAG, "Unimplemented method setFlags(Flag[], boolean) breaks markAllMessagesAsRead and EmptyTrash"); // Try to make this efficient by not retrieving all of the messages - return; } }