CollectionModel: Remove unused ExpandAll function

This commit is contained in:
Jonas Kvinge 2024-07-24 19:58:53 +02:00
parent 58587f4a9a
commit 37743606a2
2 changed files with 0 additions and 14 deletions

View File

@ -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;

View File

@ -199,8 +199,6 @@ class CollectionModel : public SimpleTreeModel<CollectionItem> {
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: