CollectionModel: Remove unused ExpandAll function
This commit is contained in:
parent
58587f4a9a
commit
37743606a2
|
@ -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;
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue