Skip to content

Commit 3a8ff73

Browse files
authored
Remove unused fields in ETagWatcher (#12241)
1 parent d16e2bf commit 3a8ff73

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

src/gui/scheduling/etagwatcher.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ void ETagWatcher::slotFolderListChanged()
6565
QString spaceId = f->definition().spaceId();
6666
auto &info = _lastEtagJobForSpace[spaceId];
6767
info.etag = etag;
68-
info.lastUpdate.reset();
6968
if (f->accountState()) {
7069
f->accountState()->tagLastSuccessfulETagRequest(time);
7170
}
@@ -93,7 +92,6 @@ void ETagWatcher::updateEtag(const QString &spaceId, const QString &etag)
9392
_folderMan->scheduler()->enqueueFolder(info.folder);
9493
}
9594
}
96-
info.lastUpdate.reset();
9795
} else {
9896
qCWarning(lcEtagWatcher) << "Invalid empty etag received for space" << spaceId;
9997
}

src/gui/scheduling/etagwatcher.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
#pragma once
1616

17-
#include "common/chronoelapsedtimer.h"
1817
#include "libsync/graphapi/space.h"
1918

2019
#include <QObject>
@@ -45,8 +44,6 @@ public Q_SLOTS:
4544
{
4645
QString etag;
4746
Folder *folder;
48-
// only used with oc10 in order to decide whether we need to query the etag
49-
Utility::ChronoElapsedTimer lastUpdate;
5047
};
5148

5249
std::unordered_map<QString, ETagInfo> _lastEtagJobForSpace;

0 commit comments

Comments
 (0)