[gnac/devel] Removed useless code



commit 9679a3c609dbb0d4da1ddb5b475afe2de044a4e5
Author: Benoît Dupasquier <bdupasqu src gnome org>
Date:   Tue Jul 20 22:08:25 2010 +0100

    Removed useless code

 src/gnac-ui.c |   13 -------------
 1 files changed, 0 insertions(+), 13 deletions(-)
---
diff --git a/src/gnac-ui.c b/src/gnac-ui.c
index 307d859..dc01ad5 100644
--- a/src/gnac-ui.c
+++ b/src/gnac-ui.c
@@ -55,7 +55,6 @@ static GtkBuilder     *gnac_main_builder = NULL;
 static GtkFileFilter  *default_file_filter;
 static GtkStatusIcon  *trayicon = NULL;
 static GtkWidget      *gnac_file_chooser;
-static gchar          *current_directory;
 static gchar          *status_msg = NULL;
 static gchar          *tooltip_path = NULL;
 static gchar          *progress_msg = NULL;
@@ -507,11 +506,6 @@ gnac_ui_file_chooser_response_cb(GtkDialog *dialog,
       /* Do we have to close de file chooser? */
       close_on_add_button = gnac_ui_get_widget("close_on_add_button");
 
-      /* Get the current uri */
-      g_free(current_directory);
-      current_directory = gtk_file_chooser_get_current_folder_uri(
-          GTK_FILE_CHOOSER(dialog));
-
       if (!gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(close_on_add_button)))
           return;
 
@@ -575,8 +569,6 @@ gnac_ui_new(void)
   gtk_about_dialog_set_url_hook(gnac_about_url_hook, NULL, NULL);
   gtk_about_dialog_set_email_hook(gnac_about_email_hook, NULL, NULL);
 
-  current_directory = g_strdup(g_get_home_dir());
-
   file_list = gnac_file_list_new();
 
   audio_profile_hbox = GTK_WIDGET(gtk_builder_get_object(gnac_main_builder,
@@ -936,11 +928,6 @@ gnac_ui_destroy(void)
     }
   }
 
-  if (current_directory) {
-    g_free(current_directory);
-    current_directory = NULL;
-  }
-
   gnac_file_list_destroy();
   
   if (gnac_main_builder) {



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