gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r18778 - in gnunet-gtk: contrib src/fs


From: gnunet
Subject: [GNUnet-SVN] r18778 - in gnunet-gtk: contrib src/fs
Date: Fri, 23 Dec 2011 16:43:04 +0100

Author: grothoff
Date: 2011-12-23 16:43:04 +0100 (Fri, 23 Dec 2011)
New Revision: 18778

Modified:
   gnunet-gtk/contrib/gnunet_fs_gtk_download_as_dialog.glade
   gnunet-gtk/src/fs/gnunet-fs-gtk-download.c
Log:
-dead code elimination

Modified: gnunet-gtk/contrib/gnunet_fs_gtk_download_as_dialog.glade
===================================================================
--- gnunet-gtk/contrib/gnunet_fs_gtk_download_as_dialog.glade   2011-12-23 
15:37:34 UTC (rev 18777)
+++ gnunet-gtk/contrib/gnunet_fs_gtk_download_as_dialog.glade   2011-12-23 
15:43:04 UTC (rev 18778)
@@ -40,7 +40,6 @@
                 <property name="can_focus">True</property>
                 <property name="receives_default">False</property>
                 <property name="use_stock">True</property>
-                <signal name="clicked" 
handler="GNUNET_GTK_save_as_dialog_cancel_button_clicked_cb" swapped="no"/>
               </object>
               <packing>
                 <property name="expand">False</property>
@@ -58,7 +57,6 @@
                 <property name="has_default">True</property>
                 <property name="receives_default">True</property>
                 <property name="use_stock">True</property>
-                <signal name="clicked" 
handler="GNUNET_GTK_save_as_dialog_ok_button_clicked_cb" swapped="no"/>
               </object>
               <packing>
                 <property name="expand">False</property>

Modified: gnunet-gtk/src/fs/gnunet-fs-gtk-download.c
===================================================================
--- gnunet-gtk/src/fs/gnunet-fs-gtk-download.c  2011-12-23 15:37:34 UTC (rev 
18777)
+++ gnunet-gtk/src/fs/gnunet-fs-gtk-download.c  2011-12-23 15:43:04 UTC (rev 
18778)
@@ -35,35 +35,14 @@
   struct DownloadContext *dc;
 };
 
-void
-GNUNET_GTK_save_as_dialog_ok_button_clicked_cb (GtkButton *button,
-    gpointer user_data)
-{
-  return;
-  struct dialog_context *dlc = NULL;
-  dlc = g_object_get_data (G_OBJECT (button), "dialog-context");
-  if (dlc != NULL)
-    dlc->response = 1;
-}
 
-void
-GNUNET_GTK_save_as_dialog_cancel_button_clicked_cb (GtkButton *button,
-    gpointer user_data)
-{
-  return;
-  struct dialog_context *dlc = NULL;
-  dlc = g_object_get_data (G_OBJECT (button), "dialog-context");
-  if (dlc != NULL)
-    dlc->response = 2;
-}
-
 gboolean
 GNUNET_GTK_save_as_dialog_delete_event_cb (GtkWidget *widget, GdkEvent  *event,
     gpointer user_data)
 {
-  GtkBuilder *builder = NULL;
-  struct dialog_context *dlc = NULL;
-  struct DownloadContext *dc = NULL;
+  GtkBuilder *builder;
+  struct dialog_context *dlc;
+  struct DownloadContext *dc;
   enum GNUNET_FS_DownloadOptions opt;
   struct GNUNET_FS_Handle *fs;
   struct DownloadEntry *de;
@@ -146,7 +125,7 @@
 GNUNET_GTK_save_as_dialog_response_cb (GtkDialog *dialog,
     gint response_id, gpointer user_data)
 {
-  struct dialog_context *dlc = NULL;
+  struct dialog_context *dlc;
   dlc = g_object_get_data (G_OBJECT (dialog), "dialog-context");
   if (dlc != NULL)
     dlc->response = response_id;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]