diff --git a/src/gui/scheduling/etagwatcher.cpp b/src/gui/scheduling/etagwatcher.cpp index 7a2be263446..8bde6410f73 100644 --- a/src/gui/scheduling/etagwatcher.cpp +++ b/src/gui/scheduling/etagwatcher.cpp @@ -65,7 +65,6 @@ void ETagWatcher::slotFolderListChanged() QString spaceId = f->definition().spaceId(); auto &info = _lastEtagJobForSpace[spaceId]; info.etag = etag; - info.lastUpdate.reset(); if (f->accountState()) { f->accountState()->tagLastSuccessfulETagRequest(time); } @@ -93,7 +92,6 @@ void ETagWatcher::updateEtag(const QString &spaceId, const QString &etag) _folderMan->scheduler()->enqueueFolder(info.folder); } } - info.lastUpdate.reset(); } else { qCWarning(lcEtagWatcher) << "Invalid empty etag received for space" << spaceId; } diff --git a/src/gui/scheduling/etagwatcher.h b/src/gui/scheduling/etagwatcher.h index 0d8ae908b91..47d85c7853c 100644 --- a/src/gui/scheduling/etagwatcher.h +++ b/src/gui/scheduling/etagwatcher.h @@ -14,7 +14,6 @@ #pragma once -#include "common/chronoelapsedtimer.h" #include "libsync/graphapi/space.h" #include @@ -45,8 +44,6 @@ public Q_SLOTS: { QString etag; Folder *folder; - // only used with oc10 in order to decide whether we need to query the etag - Utility::ChronoElapsedTimer lastUpdate; }; std::unordered_map _lastEtagJobForSpace;