From c8dd333e3105a16b3cc0aaedc748ffedce9510a1 Mon Sep 17 00:00:00 2001 From: Hannah von Reth Date: Tue, 4 Feb 2020 14:44:02 +0100 Subject: [PATCH] [Sanity] Remove old ifdef --- src/gui/folderstatusmodel.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/gui/folderstatusmodel.cpp b/src/gui/folderstatusmodel.cpp index 1b6b0dd06..1d743f80f 100644 --- a/src/gui/folderstatusmodel.cpp +++ b/src/gui/folderstatusmodel.cpp @@ -741,11 +741,6 @@ void FolderStatusModel::slotUpdateDirectories(const QStringList &list) for (int undecidedIndex : qAsConst(undecidedIndexes)) { suggestExpand(index(undecidedIndex, 0, idx)); } - -/* We need lambda function for the following code. - * It's just a small feature that will be missing if the comiler is too old */ -#if !(defined(Q_CC_GNU) && !defined(Q_CC_INTEL) && !defined(Q_CC_CLANG)) || (__GNUC__ * 100 + __GNUC_MINOR__ >= 405) - /* Try to remove the the undecided lists the items that are not on the server. */ auto it = std::remove_if(selectiveSyncUndecidedList.begin(), selectiveSyncUndecidedList.end(), [&](const QString &s) { return selectiveSyncUndecidedSet.count(s); }); @@ -755,7 +750,6 @@ void FolderStatusModel::slotUpdateDirectories(const QStringList &list) SyncJournalDb::SelectiveSyncUndecidedList, selectiveSyncUndecidedList); emit dirtyChanged(); } -#endif } void FolderStatusModel::slotLscolFinishedWithError(QNetworkReply *r)