qmlls: Remove unused variable
Fixes Clang -Wunused-but-set-variable warning. Amends25ac957f6d
Change-Id: If959b846a211796297ee2e05923e9ba3d32ae15f Reviewed-by: Marc Mutz <marc.mutz@qt.io> (cherry picked from commit27e3bebe47
) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
7ed0a4809c
commit
aa7313030d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue