diff --git a/src/plugins/projectexplorer/qtversionmanager.cpp b/src/plugins/projectexplorer/qtversionmanager.cpp index e46d6472c2c7f78d0cba645e02ba1646e5025f9d..dae9faddca4998bba644eb65274db5f11b3e0f71 100644 --- a/src/plugins/projectexplorer/qtversionmanager.cpp +++ b/src/plugins/projectexplorer/qtversionmanager.cpp @@ -476,7 +476,6 @@ void QtVersion::updateSourcePath() // QtVersion *QtVersionManager::qtVersionForDirectory(const QString directory); QString QtVersionManager::findQtVersionFromMakefile(const QString &directory) { - QString result = QString::null; bool debugAdding = false; QFile makefile(directory + "/Makefile" ); if (makefile.exists() && makefile.open(QFile::ReadOnly)) { @@ -492,14 +491,12 @@ QString QtVersionManager::findQtVersionFromMakefile(const QString &directory) QString qtDir = binDir.absolutePath(); if (debugAdding) qDebug() << "#~~ QtDir:"<<qtDir; - // Now we have the qtDir - // look through the qtversions wheter we already have that qt version setup return qtDir; } } makefile.close(); } - return result; + return QString::null; } QtVersion *QtVersionManager::qtVersionForDirectory(const QString &directory)