1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-30 13:12:25 -05:00

Eliminate a variant of addOrUpdateMessage that was only called once

This commit is contained in:
Jesse Vincent 2009-12-27 17:20:28 +00:00
parent 1c4a0be0da
commit c608ffb672

View File

@ -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<Message> messages)
{
FolderInfoHolder f = mCurrentFolder;
// xxx "f"?
if (f != null)
{
addOrUpdateMessages(account, mCurrentFolder, messages);
}
}
private void addOrUpdateMessages(Account account, FolderInfoHolder folder, List<Message> messages)
{
boolean needsSort = false;