diff options
author | Christian Stenger <christian.stenger@theqtcompany.com> | 2015-09-10 15:03:36 +0200 |
---|---|---|
committer | Christian Stenger <christian.stenger@theqtcompany.com> | 2015-10-08 13:35:23 +0300 |
commit | 9a193f7a4c6d3a5a0a2b4174f31a581f9a15aea0 (patch) | |
tree | 6d6f7c9896b57a52bff6701997bec37150c31ff0 | |
parent | 475d6b3af29a1e84baf23021aa7a68e8c0b49c13 (diff) | |
download | qt-creator-9a193f7a4c6d3a5a0a2b4174f31a581f9a15aea0.tar.gz |
Remove unused code
Change-Id: I12eb0ea78355e651fc4d904171dcdf49907b35b5
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
-rw-r--r-- | plugins/autotest/testtreemodel.cpp | 15 | ||||
-rw-r--r-- | plugins/autotest/testtreemodel.h | 1 |
2 files changed, 0 insertions, 16 deletions
diff --git a/plugins/autotest/testtreemodel.cpp b/plugins/autotest/testtreemodel.cpp index e6ff3a2b74..e18cb437ca 100644 --- a/plugins/autotest/testtreemodel.cpp +++ b/plugins/autotest/testtreemodel.cpp @@ -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) diff --git a/plugins/autotest/testtreemodel.h b/plugins/autotest/testtreemodel.h index 7bcbe5e8b1..83b6f89b18 100644 --- a/plugins/autotest/testtreemodel.h +++ b/plugins/autotest/testtreemodel.h @@ -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 |