From c608ffb67280ffb5871b8e8fc6769bd18b19f6fc Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Sun, 27 Dec 2009 17:20:28 +0000 Subject: [PATCH] Eliminate a variant of addOrUpdateMessage that was only called once --- src/com/fsck/k9/activity/MessageList.java | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/src/com/fsck/k9/activity/MessageList.java b/src/com/fsck/k9/activity/MessageList.java index 220fb2f21..282083282 100644 --- a/src/com/fsck/k9/activity/MessageList.java +++ b/src/com/fsck/k9/activity/MessageList.java @@ -1641,7 +1641,13 @@ public class MessageList { if (updateForMe(account, folder)) { - addOrUpdateMessages(account,folder, messages); + FolderInfoHolder f = mCurrentFolder; + + // xxx "f"? + if (f != null) + { + addOrUpdateMessages(account, mCurrentFolder, messages); + } } @@ -1750,18 +1756,6 @@ public class MessageList addOrUpdateMessages(account, folder, messages); } - private void addOrUpdateMessages(Account account, String folder, List messages) - { - FolderInfoHolder f = mCurrentFolder; - - // xxx "f"? - if (f != null) - { - addOrUpdateMessages(account, mCurrentFolder, messages); - } - - } - private void addOrUpdateMessages(Account account, FolderInfoHolder folder, List messages) { boolean needsSort = false;