From 37743606a2da2f79f59487cd58f92b10a5bbfecd Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Wed, 24 Jul 2024 19:58:53 +0200 Subject: [PATCH] CollectionModel: Remove unused ExpandAll function --- src/collection/collectionmodel.cpp | 12 ------------ src/collection/collectionmodel.h | 2 -- 2 files changed, 14 deletions(-) diff --git a/src/collection/collectionmodel.cpp b/src/collection/collectionmodel.cpp index 81b2d598..62e6a96b 100644 --- a/src/collection/collectionmodel.cpp +++ b/src/collection/collectionmodel.cpp @@ -1553,18 +1553,6 @@ void CollectionModel::ClearDiskCache() { if (sIconCache) sIconCache->clear(); } -void CollectionModel::ExpandAll(CollectionItem *item) const { - - if (!root_) return; - - if (!item) item = root_; - - for (CollectionItem *child : item->children) { - ExpandAll(child); - } - -} - void CollectionModel::RowsInserted(const QModelIndex &parent, const int first, const int last) { SongList songs; diff --git a/src/collection/collectionmodel.h b/src/collection/collectionmodel.h index fd5c1d21..4e8dc4a2 100644 --- a/src/collection/collectionmodel.h +++ b/src/collection/collectionmodel.h @@ -199,8 +199,6 @@ class CollectionModel : public SimpleTreeModel { SongList GetChildSongs(const QModelIndex &idx) const; SongList GetChildSongs(const QModelIndexList &indexes) const; - void ExpandAll(CollectionItem *item = nullptr) const; - bool CompareItems(const CollectionItem *a, const CollectionItem *b) const; signals: