Merge pull request #3488 from nextcloud/bugfix/remove-unused-variable

Remove unused pushNotifications variable
This commit is contained in:
Felix Weilbach 2021-07-20 11:05:13 +02:00 committed by GitHub
commit e283c166de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -850,9 +850,6 @@ void FolderMan::slotEtagPollTimerTimeout()
// Some folders need not to be checked because they use the push notifications
std::copy_if(folderMapValues.begin(), folderMapValues.end(), std::back_inserter(foldersToRun), [this](Folder *folder) -> bool {
const auto account = folder->accountState()->account();
const auto capabilities = account->capabilities();
const auto pushNotifications = account->pushNotifications();
return !pushNotificationsFilesReady(account.data());
});