Mercurial > audlegacy
comparison src/audlegacy/dbus.c @ 4858:51e2089a73f1
audacious_rc_playlist_enqueue_to_temp(): drop totally unused value
Found by LLVM static analyzer.
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Thu, 16 Apr 2009 20:14:28 -0500 |
parents | 732f392b887b |
children | 56af01cd5a5c |
comparison
equal
deleted
inserted
replaced
4857:a8f1e4b43ec4 | 4858:51e2089a73f1 |
---|---|
906 gboolean audacious_rc_playlist_add(RemoteObject *obj, gpointer list, GError **error) { | 906 gboolean audacious_rc_playlist_add(RemoteObject *obj, gpointer list, GError **error) { |
907 return playlist_add_url(playlist_get_active(), (gchar *) list) > 0; | 907 return playlist_add_url(playlist_get_active(), (gchar *) list) > 0; |
908 } | 908 } |
909 | 909 |
910 gboolean audacious_rc_playlist_enqueue_to_temp(RemoteObject *obj, gchar *url, GError **error) { | 910 gboolean audacious_rc_playlist_enqueue_to_temp(RemoteObject *obj, gchar *url, GError **error) { |
911 GList *playlists = NULL; | |
912 Playlist *new_pl = playlist_new(); | 911 Playlist *new_pl = playlist_new(); |
913 gchar *pl_name = NULL; | 912 gchar *pl_name = NULL; |
914 | 913 |
915 pl_name = (gchar*)playlist_get_current_name(new_pl); | 914 pl_name = (gchar*)playlist_get_current_name(new_pl); |
916 if(!pl_name) | 915 if(!pl_name) |
917 pl_name = g_strdup("New Playlist"); | 916 pl_name = g_strdup("New Playlist"); |
918 playlist_set_current_name(new_pl, pl_name); | 917 playlist_set_current_name(new_pl, pl_name); |
919 g_free(pl_name); | 918 g_free(pl_name); |
920 | 919 |
921 playlists = playlist_get_playlists(); | |
922 playlist_add_playlist(new_pl); | 920 playlist_add_playlist(new_pl); |
923 | 921 |
924 // DISABLE_MANAGER_UPDATE(); | 922 // DISABLE_MANAGER_UPDATE(); |
925 playlist_select_playlist(new_pl); | 923 playlist_select_playlist(new_pl); |
926 // ENABLE_MANAGER_UPDATE(); | 924 // ENABLE_MANAGER_UPDATE(); |