Remove now unused method parameters
This commit is contained in:
parent
b1faba725f
commit
b04ea348fc
3 changed files with 6 additions and 10 deletions
|
@ -207,7 +207,7 @@ class ImapSync {
|
|||
* Now we download the actual content of messages.
|
||||
*/
|
||||
int newMessages = downloadMessages(syncConfig, remoteFolder, backendFolder, remoteMessages, false,
|
||||
true, lastUid, listener);
|
||||
lastUid, listener);
|
||||
|
||||
int unreadMessageCount = backendFolder.getUnreadMessageCount();
|
||||
listener.folderStatusChanged(folder, unreadMessageCount);
|
||||
|
@ -270,7 +270,6 @@ class ImapSync {
|
|||
backendFolder,
|
||||
Collections.singletonList(remoteMessage),
|
||||
false,
|
||||
false,
|
||||
null,
|
||||
new SimpleSyncListener());
|
||||
} finally {
|
||||
|
@ -290,15 +289,12 @@ class ImapSync {
|
|||
* A list of messages objects that store the UIDs of which messages to download.
|
||||
* @param flagSyncOnly
|
||||
* Only flags will be fetched from the remote store if this is {@code true}.
|
||||
* @param purgeToVisibleLimit
|
||||
* If true, local messages will be purged down to the limit of visible messages.
|
||||
*
|
||||
* @return The number of downloaded messages that are not flagged as {@link Flag#SEEN}.
|
||||
*
|
||||
* @throws MessagingException
|
||||
*/
|
||||
private int downloadMessages(SyncConfig syncConfig, Folder remoteFolder, BackendFolder backendFolder,
|
||||
List<Message> inputMessages, boolean flagSyncOnly, boolean purgeToVisibleLimit, Long lastUid,
|
||||
List<Message> inputMessages, boolean flagSyncOnly, Long lastUid,
|
||||
final SyncListener listener) throws MessagingException {
|
||||
|
||||
final Date earliestDate = syncConfig.getEarliestPollDate();
|
||||
|
|
|
@ -193,7 +193,7 @@ class Pop3Sync {
|
|||
/*
|
||||
* Now we download the actual content of messages.
|
||||
*/
|
||||
int newMessages = downloadMessages(syncConfig, remoteFolder, backendFolder, remoteMessages, false, true,
|
||||
int newMessages = downloadMessages(syncConfig, remoteFolder, backendFolder, remoteMessages, false,
|
||||
listener);
|
||||
|
||||
int unreadMessageCount = backendFolder.getUnreadMessageCount();
|
||||
|
@ -257,7 +257,7 @@ class Pop3Sync {
|
|||
|
||||
private int downloadMessages(final SyncConfig syncConfig, final Folder remoteFolder,
|
||||
final BackendFolder backendFolder, List<Message> inputMessages, boolean flagSyncOnly,
|
||||
boolean purgeToVisibleLimit, final SyncListener listener) throws MessagingException {
|
||||
final SyncListener listener) throws MessagingException {
|
||||
|
||||
final Date earliestDate = syncConfig.getEarliestPollDate();
|
||||
Date downloadStarted = new Date(); // now
|
||||
|
|
|
@ -193,7 +193,7 @@ class WebDavSync {
|
|||
/*
|
||||
* Now we download the actual content of messages.
|
||||
*/
|
||||
int newMessages = downloadMessages(syncConfig, remoteFolder, backendFolder, remoteMessages, false, true,
|
||||
int newMessages = downloadMessages(syncConfig, remoteFolder, backendFolder, remoteMessages, false,
|
||||
listener);
|
||||
|
||||
int unreadMessageCount = backendFolder.getUnreadMessageCount();
|
||||
|
@ -257,7 +257,7 @@ class WebDavSync {
|
|||
|
||||
private int downloadMessages(final SyncConfig syncConfig, final Folder remoteFolder,
|
||||
final BackendFolder backendFolder, List<Message> inputMessages, boolean flagSyncOnly,
|
||||
boolean purgeToVisibleLimit, final SyncListener listener) throws MessagingException {
|
||||
final SyncListener listener) throws MessagingException {
|
||||
|
||||
final Date earliestDate = syncConfig.getEarliestPollDate();
|
||||
Date downloadStarted = new Date(); // now
|
||||
|
|
Loading…
Reference in a new issue