[easytag] Remove bogus conditional check



commit b93a38b07fc9a6a7e655e61a502bbd3046114137
Author: David King <amigadave amigadave com>
Date:   Tue Feb 11 18:59:02 2014 +0000

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

 src/misc.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/src/misc.c b/src/misc.c
index e741197..c1c5ab6 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -1378,8 +1378,6 @@ Playlist_Write_Button_Pressed (void)
     gchar *playlist_name_utf8;      // Path + filename
     gchar *temp;
     GtkWidget *msgdialog;
-    gint response = 0;
-
 
     // Check if playlist name was filled
     if ( gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(playlist_use_mask_name))
@@ -1484,9 +1482,6 @@ Playlist_Write_Button_Pressed (void)
 
     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]