Remove unused code

Change-Id: I5a5f41222a572f1ae3662e5c48c72b4a6adfbc13
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
Christian Stenger
2015-09-08 09:11:50 +02:00
parent 8f00ae98e6
commit 93e741270b
3 changed files with 0 additions and 17 deletions

View File

@@ -67,7 +67,6 @@ public:
signals: signals:
void cacheCleared(); void cacheCleared();
void testItemCreated(TestTreeItem *item, TestTreeModel::Type type); 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 testItemModified(TestTreeItem *tItem, TestTreeModel::Type type, const QStringList &file);
void testItemsRemoved(const QString &filePath, TestTreeModel::Type type); void testItemsRemoved(const QString &filePath, TestTreeModel::Type type);
void unnamedQuickTestsUpdated(const QString &mainFile, void unnamedQuickTestsUpdated(const QString &mainFile,

View File

@@ -53,8 +53,6 @@ TestTreeModel::TestTreeModel(QObject *parent) :
&TestTreeModel::removeAllTestItems, Qt::QueuedConnection); &TestTreeModel::removeAllTestItems, Qt::QueuedConnection);
connect(m_parser, &TestCodeParser::testItemCreated, connect(m_parser, &TestCodeParser::testItemCreated,
this, &TestTreeModel::addTestTreeItem, Qt::QueuedConnection); this, &TestTreeModel::addTestTreeItem, Qt::QueuedConnection);
connect(m_parser, &TestCodeParser::testItemsCreated,
this, &TestTreeModel::addTestTreeItems, Qt::QueuedConnection);
connect(m_parser, &TestCodeParser::testItemModified, connect(m_parser, &TestCodeParser::testItemModified,
this, &TestTreeModel::modifyTestTreeItem, Qt::QueuedConnection); this, &TestTreeModel::modifyTestTreeItem, Qt::QueuedConnection);
connect(m_parser, &TestCodeParser::testItemsRemoved, connect(m_parser, &TestCodeParser::testItemsRemoved,
@@ -670,19 +668,6 @@ void TestTreeModel::addTestTreeItem(TestTreeItem *item, TestTreeModel::Type type
emit testTreeModelChanged(); 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, void TestTreeModel::updateUnnamedQuickTest(const QString &mainFile,
const QMap<QString, TestCodeLocationAndType> &functions) const QMap<QString, TestCodeLocationAndType> &functions)
{ {

View File

@@ -92,7 +92,6 @@ public slots:
private: private:
void addTestTreeItem(TestTreeItem *item, Type type); void addTestTreeItem(TestTreeItem *item, Type type);
void addTestTreeItems(const QList<TestTreeItem> &itemList, Type type);
void updateUnnamedQuickTest(const QString &mainFile, void updateUnnamedQuickTest(const QString &mainFile,
const QMap<QString, TestCodeLocationAndType> &functions); const QMap<QString, TestCodeLocationAndType> &functions);
void modifyTestTreeItem(TestTreeItem *item, Type type, const QStringList &file); void modifyTestTreeItem(TestTreeItem *item, Type type, const QStringList &file);