diff options
author | Peter Varga <pvarga@inf.u-szeged.hu> | 2022-12-09 10:35:05 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-12-14 23:22:30 +0000 |
commit | aa7313030dfd68aaf9e8d7a1a77810bb9ab1cd87 (patch) | |
tree | d60d27515ee2e49fecc4d3092ced2b93646d0fab | |
parent | 7ed0a4809c38cce865528c9d64282822f59702a8 (diff) |
qmlls: Remove unused variable
Fixes Clang -Wunused-but-set-variable warning.
Amends 25ac957f6da559333938430eec9cc341823e22cc
Change-Id: If959b846a211796297ee2e05923e9ba3d32ae15f
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
(cherry picked from commit 27e3bebe47e897f5bf0dcb4ef3a6129995b61ab0)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | tools/qmlls/qqmlcodemodel.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/qmlls/qqmlcodemodel.cpp b/tools/qmlls/qqmlcodemodel.cpp index 4259bd61c2..9c3521aa57 100644 --- a/tools/qmlls/qqmlcodemodel.cpp +++ b/tools/qmlls/qqmlcodemodel.cpp @@ -175,7 +175,6 @@ void QQmlCodeModel::indexDirectory(const QString &path, int depthLeft) if (qmljs.isEmpty()) return; DomItem newCurrent = m_currentEnv.makeCopy(DomItem::CopyOption::EnvConnected).item(); - int iFile = 0; for (const QString &file : qmljs) { if (indexCancelled()) return; @@ -188,7 +187,6 @@ void QQmlCodeModel::indexDirectory(const QString &path, int depthLeft) newCurrent.loadPendingDependencies(); newCurrent.commitToBase(m_validEnv.ownerAs<DomEnvironment>()); } - ++iFile; { QMutexLocker l(&m_mutex); ++m_indexDoneCost; |