forked from qt-creator/qt-creator
Remove unused code
Change-Id: I12eb0ea78355e651fc4d904171dcdf49907b35b5 Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
@@ -521,21 +521,6 @@ QList<QString> TestTreeModel::getUnnamedQuickTestFunctions() const
|
||||
return QList<QString>();
|
||||
}
|
||||
|
||||
QSet<QString> TestTreeModel::qmlFilesForProFile(const QString &proFile) const
|
||||
{
|
||||
QSet<QString> filePaths;
|
||||
CppTools::CppModelManager *modelManager = CppTools::CppModelManager::instance();
|
||||
if (TestTreeItem *unnamed = unnamedQuickTests()) {
|
||||
for (int i = 0; i < unnamed->childCount(); ++i) {
|
||||
const TestTreeItem *child = unnamed->child(i);
|
||||
QList<CppTools::ProjectPart::Ptr> ppList = modelManager->projectPart(child->mainFile());
|
||||
if (ppList.size() && ppList.at(0)->projectFile == proFile)
|
||||
filePaths.insert(child->filePath());
|
||||
}
|
||||
}
|
||||
return filePaths;
|
||||
}
|
||||
|
||||
bool TestTreeModel::hasUnnamedQuickTests() const
|
||||
{
|
||||
for (int row = 0, count = m_quickTestRootItem->childCount(); row < count; ++row)
|
||||
|
@@ -67,7 +67,6 @@ public:
|
||||
QString getMainFileForUnnamedQuickTest(const QString &qmlFile) const;
|
||||
void qmlFilesForMainFile(const QString &mainFile, QSet<QString> *filePaths) const;
|
||||
QList<QString> getUnnamedQuickTestFunctions() const;
|
||||
QSet<QString> qmlFilesForProFile(const QString &proFile) const;
|
||||
bool hasUnnamedQuickTests() const;
|
||||
|
||||
#ifdef WITH_TESTS
|
||||
|
Reference in New Issue
Block a user