aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist_edit.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-08-08 22:18:08 +0200
committerMax Kellermann <max@duempel.org>2012-08-08 22:54:49 +0200
commitd488d796f45a89eb20ef1f8dba6824706e1384d9 (patch)
tree5c46fe1ed382a6863566c0b1092938c45cfa9d93 /src/playlist_edit.c
parentf794b1e1aac61fd2e6f4758e0cebfcd8d15706be (diff)
downloadmpd-d488d796f45a89eb20ef1f8dba6824706e1384d9.tar.gz
mpd-d488d796f45a89eb20ef1f8dba6824706e1384d9.tar.xz
mpd-d488d796f45a89eb20ef1f8dba6824706e1384d9.zip
player_control: add GError attribute
Rewrite of the pc_get_error_message() function, now using a GError object instead of the complicated "errored_song" attribute.
Diffstat (limited to 'src/playlist_edit.c')
-rw-r--r--src/playlist_edit.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/playlist_edit.c b/src/playlist_edit.c
index 7adbccd7c..1dfe68daa 100644
--- a/src/playlist_edit.c
+++ b/src/playlist_edit.c
@@ -45,14 +45,6 @@ playlist_clear(struct playlist *playlist, struct player_control *pc)
{
playlist_stop(playlist, pc);
- /* make sure there are no references to allocated songs
- anymore */
- for (unsigned i = 0; i < queue_length(&playlist->queue); i++) {
- const struct song *song = queue_get(&playlist->queue, i);
- if (!song_in_database(song))
- pc_song_deleted(pc, song);
- }
-
queue_clear(&playlist->queue);
playlist->current = -1;
@@ -287,9 +279,6 @@ playlist_delete_internal(struct playlist *playlist, struct player_control *pc,
/* now do it: remove the song */
- if (!song_in_database(queue_get(&playlist->queue, song)))
- pc_song_deleted(pc, queue_get(&playlist->queue, song));
-
queue_delete(&playlist->queue, song);
/* update the "current" and "queued" variables */
@@ -363,8 +352,6 @@ playlist_delete_song(struct playlist *playlist, struct player_control *pc,
for (int i = queue_length(&playlist->queue) - 1; i >= 0; --i)
if (song == queue_get(&playlist->queue, i))
playlist_delete(playlist, pc, i);
-
- pc_song_deleted(pc, song);
}
enum playlist_result