[easytag/wip/application-window: 16/18] Remove bogus conditional check



commit 81ef1d637097a1810201bf55eae88935b595a265
Author: David King <amigadave amigadave com>
Date:   Mon Feb 3 16:30:42 2014 +0000

    Remove bogus conditional check
    
    Found with Coverity (CID 1163350).

 src/playlist_dialog.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/src/playlist_dialog.c b/src/playlist_dialog.c
index 9e88fa9..31c2eb5 100644
--- a/src/playlist_dialog.c
+++ b/src/playlist_dialog.c
@@ -394,7 +394,6 @@ write_button_clicked (EtPlaylistDialog *self)
     gchar *playlist_name_utf8;      // Path + filename
     gchar *temp;
     GtkWidget *msgdialog;
-    gint response = 0;
 
     priv = et_playlist_dialog_get_instance_private (self);
 
@@ -501,9 +500,6 @@ write_button_clicked (EtPlaylistDialog *self)
 
     playlist_name = filename_from_display(playlist_name_utf8);
 
-    // Writing playlist if ok
-    if (response == 0
-    ||  response == GTK_RESPONSE_YES )
     {
         GFile *file = g_file_new_for_path (playlist_name);
         GError *error = NULL;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]