Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2021-03-19 17:14:55 +0300
committerHannah von Reth <vonreth@kde.org>2021-03-22 14:49:28 +0300
commit22fc548671b2d93283dc360651194f047840de1c (patch)
tree6878e21bafbfe262daf29f3f30a562753768e127 /src/libsync/owncloudpropagator.cpp
parent14be2efb14f9d251bf686fd1c7a183e7c9dfb1a2 (diff)
Filter sync items before we start propagation
Diffstat (limited to 'src/libsync/owncloudpropagator.cpp')
-rw-r--r--src/libsync/owncloudpropagator.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/libsync/owncloudpropagator.cpp b/src/libsync/owncloudpropagator.cpp
index d5a0c6715..81be4c9d1 100644
--- a/src/libsync/owncloudpropagator.cpp
+++ b/src/libsync/owncloudpropagator.cpp
@@ -41,7 +41,6 @@
#include <QTimer>
#include <QObject>
#include <QTimerEvent>
-#include <QRegularExpression>
#include <qmath.h>
namespace OCC {
@@ -379,26 +378,6 @@ void OwncloudPropagator::start(SyncFileItemVector &&items)
* In order to do that we loop over the items. (which are sorted by destination)
* When we enter a directory, we can create the directory job and push it on the stack. */
- const auto regex = syncOptions().fileRegex();
- if (regex.isValid()) {
- QSet<QStringRef> names;
- for (auto &i : items) {
- if (regex.match(i->_file).hasMatch()) {
- int index = -1;
- QStringRef ref;
- do {
- ref = i->_file.midRef(0, index);
- names.insert(ref);
- index = ref.lastIndexOf(QLatin1Char('/'));
- } while (index > 0);
- }
- }
- items.erase(std::remove_if(items.begin(), items.end(), [&names](auto i) {
- return !names.contains(QStringRef { &i->_file });
- }),
- items.end());
- }
-
_rootJob.reset(new PropagateRootDirectory(this));
QStack<QPair<QString /* directory name */, PropagateDirectory * /* job */>> directories;
directories.push(qMakePair(QString(), _rootJob.data()));