PlaylistManager: Remove unused InvalidateDeletedSongs function
This commit is contained in:
@@ -525,15 +525,6 @@ void PlaylistManager::RemoveCurrentSong() const {
|
|||||||
active()->removeRows(active()->current_index().row(), 1);
|
active()->removeRows(active()->current_index().row(), 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void PlaylistManager::InvalidateDeletedSongs() {
|
|
||||||
|
|
||||||
const QList<Playlist*> playlists = GetAllPlaylists();
|
|
||||||
for (Playlist *playlist : playlists) {
|
|
||||||
playlist->InvalidateDeletedSongs();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
void PlaylistManager::RemoveDeletedSongs() {
|
void PlaylistManager::RemoveDeletedSongs() {
|
||||||
|
|
||||||
const QList<Playlist*> playlists = GetAllPlaylists();
|
const QList<Playlist*> playlists = GetAllPlaylists();
|
||||||
|
|||||||
@@ -74,8 +74,6 @@ class PlaylistManager : public PlaylistManagerInterface {
|
|||||||
|
|
||||||
// Returns the collection of playlists managed by this PlaylistManager.
|
// Returns the collection of playlists managed by this PlaylistManager.
|
||||||
QList<Playlist*> GetAllPlaylists() const override;
|
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.
|
// Removes all deleted songs from all playlists.
|
||||||
void RemoveDeletedSongs() override;
|
void RemoveDeletedSongs() override;
|
||||||
// Returns true if the playlist is open
|
// Returns true if the playlist is open
|
||||||
|
|||||||
@@ -59,8 +59,6 @@ class PlaylistManagerInterface : public QObject {
|
|||||||
|
|
||||||
// Returns the collection of playlists managed by this PlaylistManager.
|
// Returns the collection of playlists managed by this PlaylistManager.
|
||||||
virtual QList<Playlist*> GetAllPlaylists() const = 0;
|
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.
|
// Removes all deleted songs from all playlists.
|
||||||
virtual void RemoveDeletedSongs() = 0;
|
virtual void RemoveDeletedSongs() = 0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user