summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@theqtcompany.com>2015-09-08 09:11:50 +0200
committerChristian Stenger <christian.stenger@theqtcompany.com>2015-10-02 11:54:28 +0300
commit93e741270b3ab198dea78ec748fe83eaebc41843 (patch)
tree0cf37f6528ff08bcccf952ef3096ec30c857ec30
parent8f00ae98e69dd0f7df5e04fb34643bdcd8135784 (diff)
downloadqt-creator-93e741270b3ab198dea78ec748fe83eaebc41843.tar.gz
Remove unused code
Change-Id: I5a5f41222a572f1ae3662e5c48c72b4a6adfbc13 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
-rw-r--r--plugins/autotest/testcodeparser.h1
-rw-r--r--plugins/autotest/testtreemodel.cpp15
-rw-r--r--plugins/autotest/testtreemodel.h1
3 files changed, 0 insertions, 17 deletions
diff --git a/plugins/autotest/testcodeparser.h b/plugins/autotest/testcodeparser.h
index 0ba16ff762..3c5529f63a 100644
--- a/plugins/autotest/testcodeparser.h
+++ b/plugins/autotest/testcodeparser.h
@@ -67,7 +67,6 @@ public:
signals:
void cacheCleared();
void testItemCreated(TestTreeItem *item, TestTreeModel::Type type);
- void testItemsCreated(const QList<TestTreeItem> &itemList, TestTreeModel::Type type);
void testItemModified(TestTreeItem *tItem, TestTreeModel::Type type, const QStringList &file);
void testItemsRemoved(const QString &filePath, TestTreeModel::Type type);
void unnamedQuickTestsUpdated(const QString &mainFile,
diff --git a/plugins/autotest/testtreemodel.cpp b/plugins/autotest/testtreemodel.cpp
index b6b9c8ca3a..ccc7616df4 100644
--- a/plugins/autotest/testtreemodel.cpp
+++ b/plugins/autotest/testtreemodel.cpp
@@ -53,8 +53,6 @@ TestTreeModel::TestTreeModel(QObject *parent) :
&TestTreeModel::removeAllTestItems, Qt::QueuedConnection);
connect(m_parser, &TestCodeParser::testItemCreated,
this, &TestTreeModel::addTestTreeItem, Qt::QueuedConnection);
- connect(m_parser, &TestCodeParser::testItemsCreated,
- this, &TestTreeModel::addTestTreeItems, Qt::QueuedConnection);
connect(m_parser, &TestCodeParser::testItemModified,
this, &TestTreeModel::modifyTestTreeItem, Qt::QueuedConnection);
connect(m_parser, &TestCodeParser::testItemsRemoved,
@@ -670,19 +668,6 @@ void TestTreeModel::addTestTreeItem(TestTreeItem *item, TestTreeModel::Type type
emit testTreeModelChanged();
}
-void TestTreeModel::addTestTreeItems(const QList<TestTreeItem> &itemList, TestTreeModel::Type type)
-{
- TestTreeItem *parent = rootItemForType(type);
- QModelIndex index = rootIndexForType(type);
-
- beginInsertRows(index, parent->childCount(), parent->childCount() + itemList.size() - 1);
- foreach (const TestTreeItem &item, itemList) {
- TestTreeItem *toBeAdded = new TestTreeItem(item);
- parent->appendChild(toBeAdded);
- }
- endInsertRows();
-}
-
void TestTreeModel::updateUnnamedQuickTest(const QString &mainFile,
const QMap<QString, TestCodeLocationAndType> &functions)
{
diff --git a/plugins/autotest/testtreemodel.h b/plugins/autotest/testtreemodel.h
index 003336e5b8..7a7deaeb13 100644
--- a/plugins/autotest/testtreemodel.h
+++ b/plugins/autotest/testtreemodel.h
@@ -92,7 +92,6 @@ public slots:
private:
void addTestTreeItem(TestTreeItem *item, Type type);
- void addTestTreeItems(const QList<TestTreeItem> &itemList, Type type);
void updateUnnamedQuickTest(const QString &mainFile,
const QMap<QString, TestCodeLocationAndType> &functions);
void modifyTestTreeItem(TestTreeItem *item, Type type, const QStringList &file);