qmlls: Remove unused variable

Fixes Clang -Wunused-but-set-variable warning.

Amends 25ac957f6d

Change-Id: If959b846a211796297ee2e05923e9ba3d32ae15f
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
(cherry picked from commit 27e3bebe47)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Peter Varga 2022-12-09 10:35:05 +01:00 committed by Qt Cherry-pick Bot
parent 7ed0a4809c
commit aa7313030d
1 changed files with 0 additions and 2 deletions

View File

@ -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;