diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-08-29 17:15:30 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-08-29 17:15:30 +0300 |
commit | f0951094863a04b422ba5ead16866d57fc81b0b8 (patch) | |
tree | e5ce98d3f9e5de532447696fe5b1ffcd3077d356 /lib/IMAP | |
parent | 81b2e0e61269fe0c2b9ff1395c5ae497539ebda7 (diff) |
Remove unused param from mailbox sync
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/IMAP')
-rw-r--r-- | lib/IMAP/MailboxSync.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/IMAP/MailboxSync.php b/lib/IMAP/MailboxSync.php index bb5d170db..f1238a9ea 100644 --- a/lib/IMAP/MailboxSync.php +++ b/lib/IMAP/MailboxSync.php @@ -92,9 +92,7 @@ class MailboxSync { foreach ($folders as $folder) { if (isset($existing[$folder->getMailbox()])) { $this->updateMailboxFromFolder( - $account, - $folder, - $existing[$folder->getMailbox()] + $folder, $existing[$folder->getMailbox()] ); } else { $this->createMailboxFromFolder( @@ -114,7 +112,7 @@ class MailboxSync { $this->mailAccountMapper->update($account->getMailAccount()); } - private function updateMailboxFromFolder(Account $account, Folder $folder, Mailbox $mailbox): void { + private function updateMailboxFromFolder(Folder $folder, Mailbox $mailbox): void { $mailbox->setDelimiter($folder->getDelimiter()); $mailbox->setSyncToken($folder->getSyncToken()); $mailbox->setAttributes(json_encode($folder->getAttributes())); |