diff --git a/src/common/syncjournaldb.cpp b/src/common/syncjournaldb.cpp index fef3caf0a76b..59e3e3f19758 100644 --- a/src/common/syncjournaldb.cpp +++ b/src/common/syncjournaldb.cpp @@ -1061,9 +1061,7 @@ bool SyncJournalDb::updateParentForAllChildren(const QByteArray &oldParentPath, } query->bindValue(1, oldParentPath); query->bindValue(2, newParentPath); - auto res = query->exec(); - auto numRows = query->numRowsAffected(); - return res; + return query->exec(); } void SyncJournalDb::keyValueStoreSet(const QString &key, QVariant value) diff --git a/src/libsync/owncloudpropagator.cpp b/src/libsync/owncloudpropagator.cpp index d523dd921c9e..5f1825aca833 100644 --- a/src/libsync/owncloudpropagator.cpp +++ b/src/libsync/owncloudpropagator.cpp @@ -562,10 +562,7 @@ void OwncloudPropagator::start(SyncFileItemVector &&items) } // when a folder is moved on the local device we only need to perform one MOVE on the server and then just update database, so we only keep unique moves (topmost moved folder items) - bool isCleanup = true; - if (isCleanup) { - cleanupLocallyMovedFoldersFromNestedItems(items); - } + cleanupLocallyMovedFoldersFromNestedItems(items); qCInfo(lcPropagator) << "END ITEMS CLEANUP"; for (const auto &item : items) {