TreeModel: Remove BaseTreeModel::topLevelItemCount()

Not used, and easily done with rootItem()->childCount() in case it
is needed again.

Change-Id: I7e85ac1bb72b3a799987b1bf6bd54d21b7ab06ee
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2016-07-27 18:00:16 +02:00
committed by hjk
parent 8eca665307
commit be2a0b9ecd
2 changed files with 0 additions and 7 deletions

View File

@@ -944,11 +944,6 @@ TreeItem *BaseTreeModel::rootItem() const
return m_root;
}
int BaseTreeModel::topLevelItemCount() const
{
return m_root->childCount();
}
void BaseTreeModel::setRootItem(TreeItem *item)
{
QTC_ASSERT(item, return);