aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-12-23 15:43:04 +0000
committerChristian Grothoff <christian@grothoff.org>2011-12-23 15:43:04 +0000
commit1805b87ab1cb23d3b436003c36b2888e59eee547 (patch)
tree544687d4b1aba2f0ae7df00c26200b53bae9d8d6
parent6afbd416870720be49aaea9ac3fef7fcef44e39e (diff)
downloadgnunet-gtk-1805b87ab1cb23d3b436003c36b2888e59eee547.tar.gz
gnunet-gtk-1805b87ab1cb23d3b436003c36b2888e59eee547.zip
-dead code elimination
-rw-r--r--contrib/gnunet_fs_gtk_download_as_dialog.glade2
-rw-r--r--src/fs/gnunet-fs-gtk-download.c29
2 files changed, 4 insertions, 27 deletions
diff --git a/contrib/gnunet_fs_gtk_download_as_dialog.glade b/contrib/gnunet_fs_gtk_download_as_dialog.glade
index d15ca724..8f1cf970 100644
--- a/contrib/gnunet_fs_gtk_download_as_dialog.glade
+++ b/contrib/gnunet_fs_gtk_download_as_dialog.glade
@@ -40,7 +40,6 @@
40 <property name="can_focus">True</property> 40 <property name="can_focus">True</property>
41 <property name="receives_default">False</property> 41 <property name="receives_default">False</property>
42 <property name="use_stock">True</property> 42 <property name="use_stock">True</property>
43 <signal name="clicked" handler="GNUNET_GTK_save_as_dialog_cancel_button_clicked_cb" swapped="no"/>
44 </object> 43 </object>
45 <packing> 44 <packing>
46 <property name="expand">False</property> 45 <property name="expand">False</property>
@@ -58,7 +57,6 @@
58 <property name="has_default">True</property> 57 <property name="has_default">True</property>
59 <property name="receives_default">True</property> 58 <property name="receives_default">True</property>
60 <property name="use_stock">True</property> 59 <property name="use_stock">True</property>
61 <signal name="clicked" handler="GNUNET_GTK_save_as_dialog_ok_button_clicked_cb" swapped="no"/>
62 </object> 60 </object>
63 <packing> 61 <packing>
64 <property name="expand">False</property> 62 <property name="expand">False</property>
diff --git a/src/fs/gnunet-fs-gtk-download.c b/src/fs/gnunet-fs-gtk-download.c
index 1a7ff302..3f5f213b 100644
--- a/src/fs/gnunet-fs-gtk-download.c
+++ b/src/fs/gnunet-fs-gtk-download.c
@@ -35,35 +35,14 @@ struct dialog_context
35 struct DownloadContext *dc; 35 struct DownloadContext *dc;
36}; 36};
37 37
38void
39GNUNET_GTK_save_as_dialog_ok_button_clicked_cb (GtkButton *button,
40 gpointer user_data)
41{
42 return;
43 struct dialog_context *dlc = NULL;
44 dlc = g_object_get_data (G_OBJECT (button), "dialog-context");
45 if (dlc != NULL)
46 dlc->response = 1;
47}
48
49void
50GNUNET_GTK_save_as_dialog_cancel_button_clicked_cb (GtkButton *button,
51 gpointer user_data)
52{
53 return;
54 struct dialog_context *dlc = NULL;
55 dlc = g_object_get_data (G_OBJECT (button), "dialog-context");
56 if (dlc != NULL)
57 dlc->response = 2;
58}
59 38
60gboolean 39gboolean
61GNUNET_GTK_save_as_dialog_delete_event_cb (GtkWidget *widget, GdkEvent *event, 40GNUNET_GTK_save_as_dialog_delete_event_cb (GtkWidget *widget, GdkEvent *event,
62 gpointer user_data) 41 gpointer user_data)
63{ 42{
64 GtkBuilder *builder = NULL; 43 GtkBuilder *builder;
65 struct dialog_context *dlc = NULL; 44 struct dialog_context *dlc;
66 struct DownloadContext *dc = NULL; 45 struct DownloadContext *dc;
67 enum GNUNET_FS_DownloadOptions opt; 46 enum GNUNET_FS_DownloadOptions opt;
68 struct GNUNET_FS_Handle *fs; 47 struct GNUNET_FS_Handle *fs;
69 struct DownloadEntry *de; 48 struct DownloadEntry *de;
@@ -146,7 +125,7 @@ void
146GNUNET_GTK_save_as_dialog_response_cb (GtkDialog *dialog, 125GNUNET_GTK_save_as_dialog_response_cb (GtkDialog *dialog,
147 gint response_id, gpointer user_data) 126 gint response_id, gpointer user_data)
148{ 127{
149 struct dialog_context *dlc = NULL; 128 struct dialog_context *dlc;
150 dlc = g_object_get_data (G_OBJECT (dialog), "dialog-context"); 129 dlc = g_object_get_data (G_OBJECT (dialog), "dialog-context");
151 if (dlc != NULL) 130 if (dlc != NULL)
152 dlc->response = response_id; 131 dlc->response = response_id;