diff --git a/src/libs/utils/treemodel.cpp b/src/libs/utils/treemodel.cpp index 61b7ee6e173..48dd4ac1b06 100644 --- a/src/libs/utils/treemodel.cpp +++ b/src/libs/utils/treemodel.cpp @@ -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); diff --git a/src/libs/utils/treemodel.h b/src/libs/utils/treemodel.h index 300ace1a18e..0fdff46f921 100644 --- a/src/libs/utils/treemodel.h +++ b/src/libs/utils/treemodel.h @@ -207,7 +207,6 @@ protected: TreeItem *itemForIndex(const QModelIndex &) const; QModelIndex indexForItem(const TreeItem *needle) const; - int topLevelItemCount() const; int rowCount(const QModelIndex &idx = QModelIndex()) const override; int columnCount(const QModelIndex &idx) const override; @@ -308,7 +307,6 @@ public: using BaseTreeModel::setHeader; using BaseTreeModel::setHeaderToolTip; using BaseTreeModel::takeItem; - using BaseTreeModel::topLevelItemCount; template void forItemsAtLevel(const Predicate &pred) const {