forked from qt-creator/qt-creator
Remove unused variables
Change-Id: I8b49a2eea7509abb685d751a0f038dc3b4f555ca Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
@@ -309,7 +309,6 @@ QString FileInProjectFinder::findInSearchPath(const QString &searchPath, const Q
|
|||||||
{
|
{
|
||||||
qCDebug(finderLog) << "FileInProjectFinder: checking search path" << searchPath;
|
qCDebug(finderLog) << "FileInProjectFinder: checking search path" << searchPath;
|
||||||
|
|
||||||
QFileInfo fi;
|
|
||||||
QString s = filePath;
|
QString s = filePath;
|
||||||
while (!s.isEmpty()) {
|
while (!s.isEmpty()) {
|
||||||
const QString candidate = searchPath + QLatin1Char('/') + s;
|
const QString candidate = searchPath + QLatin1Char('/') + s;
|
||||||
|
|||||||
@@ -878,7 +878,6 @@ bool ListField::parseData(const QVariant &data, QString *errorMessage)
|
|||||||
|
|
||||||
for (const QVariant &i : value.toList()) {
|
for (const QVariant &i : value.toList()) {
|
||||||
std::unique_ptr<QStandardItem> item = createStandardItemFromListItem(i, errorMessage);
|
std::unique_ptr<QStandardItem> item = createStandardItemFromListItem(i, errorMessage);
|
||||||
QString test = item->text();
|
|
||||||
QTC_ASSERT(!item || !item->text().isEmpty(), continue);
|
QTC_ASSERT(!item || !item->text().isEmpty(), continue);
|
||||||
m_itemList.emplace_back(std::move(item));
|
m_itemList.emplace_back(std::move(item));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -106,7 +106,6 @@ void BasicBundleProvider::mergeBundlesForKit(ProjectExplorer::Kit *kit
|
|||||||
bundles.mergeBundleForLanguage(Dialect::QmlQtQuick2Ui, b2);
|
bundles.mergeBundleForLanguage(Dialect::QmlQtQuick2Ui, b2);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
QString qtImportsPath = qtVersion->qmakeProperty("QT_INSTALL_IMPORTS");
|
|
||||||
QString qtQmlPath = qtVersion->qmlPath().toString();
|
QString qtQmlPath = qtVersion->qmlPath().toString();
|
||||||
|
|
||||||
myReplacements.insert(QLatin1String("$(CURRENT_DIRECTORY)"), qtQmlPath);
|
myReplacements.insert(QLatin1String("$(CURRENT_DIRECTORY)"), qtQmlPath);
|
||||||
|
|||||||
@@ -119,7 +119,6 @@ static QString tweakName(const QString &oldName)
|
|||||||
return QString();
|
return QString();
|
||||||
}
|
}
|
||||||
int templateStart = fullName.indexOf('<');
|
int templateStart = fullName.indexOf('<');
|
||||||
QString name = fullName.mid(0, templateStart);
|
|
||||||
QString templatePart = fullName.mid(templateStart + 1,
|
QString templatePart = fullName.mid(templateStart + 1,
|
||||||
fullName.length() - templateStart - 2);
|
fullName.length() - templateStart - 2);
|
||||||
return "new " + templatePart + "(";
|
return "new " + templatePart + "(";
|
||||||
|
|||||||
Reference in New Issue
Block a user