PlaylistManager: Remove unused InvalidateDeletedSongs function

This commit is contained in:
Jonas Kvinge
2025-01-04 00:09:26 +01:00
parent 9ee5c8dc17
commit a13fc31f83
3 changed files with 0 additions and 13 deletions

View File

@@ -525,15 +525,6 @@ void PlaylistManager::RemoveCurrentSong() const {
active()->removeRows(active()->current_index().row(), 1);
}
void PlaylistManager::InvalidateDeletedSongs() {
const QList<Playlist*> playlists = GetAllPlaylists();
for (Playlist *playlist : playlists) {
playlist->InvalidateDeletedSongs();
}
}
void PlaylistManager::RemoveDeletedSongs() {
const QList<Playlist*> playlists = GetAllPlaylists();

View File

@@ -74,8 +74,6 @@ class PlaylistManager : public PlaylistManagerInterface {
// Returns the collection of playlists managed by this PlaylistManager.
QList<Playlist*> GetAllPlaylists() const override;
// Grays out and reloads all deleted songs in all playlists.
void InvalidateDeletedSongs() override;
// Removes all deleted songs from all playlists.
void RemoveDeletedSongs() override;
// Returns true if the playlist is open

View File

@@ -59,8 +59,6 @@ class PlaylistManagerInterface : public QObject {
// Returns the collection of playlists managed by this PlaylistManager.
virtual QList<Playlist*> GetAllPlaylists() const = 0;
// Grays out and reloads all deleted songs in all playlists.
virtual void InvalidateDeletedSongs() = 0;
// Removes all deleted songs from all playlists.
virtual void RemoveDeletedSongs() = 0;