forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user