Qmake: Remove dead code

Change-Id: If28fb24a47a462b5c79ff22ded515d14c010ce72
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Robert Loehning
2017-07-24 14:01:26 +02:00
parent 41127e0f47
commit 95617ff971

View File

@@ -244,7 +244,6 @@ void MakeFileParse::parseAssignments(QList<QMakeAssignment> *assignments)
static FileName findQMakeBinaryFromMakefile(const QString &makefile) static FileName findQMakeBinaryFromMakefile(const QString &makefile)
{ {
bool debugAdding = false;
QFile fi(makefile); QFile fi(makefile);
if (fi.exists() && fi.open(QFile::ReadOnly)) { if (fi.exists() && fi.open(QFile::ReadOnly)) {
QTextStream ts(&fi); QTextStream ts(&fi);
@@ -252,8 +251,6 @@ static FileName findQMakeBinaryFromMakefile(const QString &makefile)
while (!ts.atEnd()) { while (!ts.atEnd()) {
QString line = ts.readLine(); QString line = ts.readLine();
if (r1.exactMatch(line)) { if (r1.exactMatch(line)) {
if (debugAdding)
qDebug()<<"#~~ QMAKE is:"<<r1.cap(1).trimmed();
QFileInfo qmake(r1.cap(1).trimmed()); QFileInfo qmake(r1.cap(1).trimmed());
QString qmakePath = qmake.filePath(); QString qmakePath = qmake.filePath();
if (!QString::fromLatin1(QTC_HOST_EXE_SUFFIX).isEmpty() if (!QString::fromLatin1(QTC_HOST_EXE_SUFFIX).isEmpty()