Remove unused variables

Change-Id: I8b49a2eea7509abb685d751a0f038dc3b4f555ca
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
Robert Loehning
2018-09-05 22:49:35 +02:00
parent eccc24e5c9
commit 747d1ef9f1
4 changed files with 0 additions and 4 deletions

View File

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

View File

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

View File

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

View File

@@ -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 + "(";