forked from qt-creator/qt-creator
QtSupport: Remove unused QtVersionManager functions
Change-Id: Ic6bc4c56ebedc71ff4c136fd201b8a236384c3fd Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -503,12 +503,6 @@ QList<BaseQtVersion *> QtVersionManager::sortVersions(const QList<BaseQtVersion
|
||||
return result;
|
||||
}
|
||||
|
||||
bool QtVersionManager::isValidId(int id)
|
||||
{
|
||||
QTC_ASSERT(isLoaded(), return false);
|
||||
return m_versions.contains(id);
|
||||
}
|
||||
|
||||
BaseQtVersion *QtVersionManager::version(int id)
|
||||
{
|
||||
QTC_ASSERT(isLoaded(), return nullptr);
|
||||
@@ -591,9 +585,4 @@ void QtVersionManager::setNewQtVersions(QList<BaseQtVersion *> newVersions)
|
||||
emit m_instance->qtVersionsChanged(addedVersions, removedVersions, changedVersions);
|
||||
}
|
||||
|
||||
BaseQtVersion *QtVersionManager::qtVersionForQMakeBinary(const FilePath &qmakePath)
|
||||
{
|
||||
return version(Utils::equal(&BaseQtVersion::qmakeCommand, qmakePath));
|
||||
}
|
||||
|
||||
} // namespace QtVersion
|
||||
|
||||
@@ -59,13 +59,9 @@ public:
|
||||
// Sorting is potentially expensive since it might require qmake --query to run for each version!
|
||||
static QList<BaseQtVersion *> sortVersions(const QList<BaseQtVersion *> &input);
|
||||
|
||||
static BaseQtVersion *qtVersionForQMakeBinary(const Utils::FilePath &qmakePath);
|
||||
|
||||
static void addVersion(BaseQtVersion *version);
|
||||
static void removeVersion(BaseQtVersion *version);
|
||||
|
||||
static bool isValidId(int id);
|
||||
|
||||
signals:
|
||||
// content of BaseQtVersion objects with qmake path might have changed
|
||||
void qtVersionsChanged(const QList<int> &addedIds, const QList<int> &removedIds, const QList<int> &changedIds);
|
||||
|
||||
Reference in New Issue
Block a user