Remove now unused method parameters

This commit is contained in:
cketti 2019-12-01 14:25:02 +01:00
parent b1faba725f
commit b04ea348fc
3 changed files with 6 additions and 10 deletions

View file

@ -207,7 +207,7 @@ class ImapSync {
* Now we download the actual content of messages. * Now we download the actual content of messages.
*/ */
int newMessages = downloadMessages(syncConfig, remoteFolder, backendFolder, remoteMessages, false, int newMessages = downloadMessages(syncConfig, remoteFolder, backendFolder, remoteMessages, false,
true, lastUid, listener); lastUid, listener);
int unreadMessageCount = backendFolder.getUnreadMessageCount(); int unreadMessageCount = backendFolder.getUnreadMessageCount();
listener.folderStatusChanged(folder, unreadMessageCount); listener.folderStatusChanged(folder, unreadMessageCount);
@ -270,7 +270,6 @@ class ImapSync {
backendFolder, backendFolder,
Collections.singletonList(remoteMessage), Collections.singletonList(remoteMessage),
false, false,
false,
null, null,
new SimpleSyncListener()); new SimpleSyncListener());
} finally { } finally {
@ -290,15 +289,12 @@ class ImapSync {
* A list of messages objects that store the UIDs of which messages to download. * A list of messages objects that store the UIDs of which messages to download.
* @param flagSyncOnly * @param flagSyncOnly
* Only flags will be fetched from the remote store if this is {@code true}. * 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}. * @return The number of downloaded messages that are not flagged as {@link Flag#SEEN}.
* *
* @throws MessagingException * @throws MessagingException
*/ */
private int downloadMessages(SyncConfig syncConfig, Folder remoteFolder, BackendFolder backendFolder, 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 SyncListener listener) throws MessagingException {
final Date earliestDate = syncConfig.getEarliestPollDate(); final Date earliestDate = syncConfig.getEarliestPollDate();

View file

@ -193,7 +193,7 @@ class Pop3Sync {
/* /*
* Now we download the actual content of messages. * 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); listener);
int unreadMessageCount = backendFolder.getUnreadMessageCount(); int unreadMessageCount = backendFolder.getUnreadMessageCount();
@ -257,7 +257,7 @@ class Pop3Sync {
private int downloadMessages(final SyncConfig syncConfig, final Folder remoteFolder, private int downloadMessages(final SyncConfig syncConfig, final Folder remoteFolder,
final BackendFolder backendFolder, List<Message> inputMessages, boolean flagSyncOnly, 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(); final Date earliestDate = syncConfig.getEarliestPollDate();
Date downloadStarted = new Date(); // now Date downloadStarted = new Date(); // now

View file

@ -193,7 +193,7 @@ class WebDavSync {
/* /*
* Now we download the actual content of messages. * 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); listener);
int unreadMessageCount = backendFolder.getUnreadMessageCount(); int unreadMessageCount = backendFolder.getUnreadMessageCount();
@ -257,7 +257,7 @@ class WebDavSync {
private int downloadMessages(final SyncConfig syncConfig, final Folder remoteFolder, private int downloadMessages(final SyncConfig syncConfig, final Folder remoteFolder,
final BackendFolder backendFolder, List<Message> inputMessages, boolean flagSyncOnly, 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(); final Date earliestDate = syncConfig.getEarliestPollDate();
Date downloadStarted = new Date(); // now Date downloadStarted = new Date(); // now