From 38467b2e3029c6503444b14bd9c1a6e04f59a7ee Mon Sep 17 00:00:00 2001 From: Felix Weilbach Date: Fri, 25 Jun 2021 11:01:52 +0200 Subject: [PATCH 1/2] Remove unused pushNotifications variable Signed-off-by: Felix Weilbach --- src/gui/folderman.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/gui/folderman.cpp b/src/gui/folderman.cpp index 8969696795294..c868d529f918a 100644 --- a/src/gui/folderman.cpp +++ b/src/gui/folderman.cpp @@ -851,7 +851,6 @@ void FolderMan::slotEtagPollTimerTimeout() 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()); }); From 12bdd8742b83e54f899d8654167c001e9b7ea1a9 Mon Sep 17 00:00:00 2001 From: Felix Weilbach Date: Mon, 12 Jul 2021 13:04:10 +0200 Subject: [PATCH 2/2] Remove unnused variable Signed-off-by: Felix Weilbach --- src/gui/folderman.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/gui/folderman.cpp b/src/gui/folderman.cpp index c868d529f918a..03268939ce67b 100644 --- a/src/gui/folderman.cpp +++ b/src/gui/folderman.cpp @@ -850,8 +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(); - return !pushNotificationsFilesReady(account.data()); });