forked from qt-creator/qt-creator
QtSupport: Remove legacy code
Change-Id: Ie7578d34466fb6c4d2f7e77e513caec253e7c813 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -64,17 +64,6 @@ QVariant QtKitInformation::defaultValue(const Kit *k) const
|
|||||||
if (result)
|
if (result)
|
||||||
return result->uniqueId();
|
return result->uniqueId();
|
||||||
|
|
||||||
// Legacy: Check for system qmake path: Remove in 3.5 (or later):
|
|
||||||
// This check is expensive as it will potentially run binaries (qmake --version)!
|
|
||||||
const FileName qmakePath
|
|
||||||
= BuildableHelperLibrary::findSystemQt(Utils::Environment::systemEnvironment());
|
|
||||||
|
|
||||||
if (!qmakePath.isEmpty()) {
|
|
||||||
result = findOrDefault(versionList, equal(&BaseQtVersion::qmakeCommand, qmakePath));
|
|
||||||
if (result)
|
|
||||||
return result->uniqueId();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Use *any* desktop Qt:
|
// Use *any* desktop Qt:
|
||||||
result = findOrDefault(versionList, equal(&BaseQtVersion::type,
|
result = findOrDefault(versionList, equal(&BaseQtVersion::type,
|
||||||
QString::fromLatin1(QtSupport::Constants::DESKTOPQT)));
|
QString::fromLatin1(QtSupport::Constants::DESKTOPQT)));
|
||||||
|
Reference in New Issue
Block a user