]> spindle.queued.net Git - midori/commitdiff
Remove unused variable 'action' and move declarations into a block
authorEnrico Tröger <enrico.troeger@uvena.de>
Tue, 2 Jun 2009 23:13:24 +0000 (01:13 +0200)
committerChristian Dywan <christian@twotoasts.de>
Tue, 2 Jun 2009 23:13:24 +0000 (01:13 +0200)
midori/midori-browser.c

index 534ec84d12b352eae44eb7dbb781cacfa6ac9463..6d1ae8474c04296aac9628270d609a7b028f9e19 100644 (file)
@@ -1262,9 +1262,6 @@ midori_view_download_requested_cb (GtkWidget*      view,
     g_signal_emit (browser, signals[ADD_DOWNLOAD], 0, download);
     if (!webkit_download_get_destination_uri (download))
     {
-        gchar* filename;
-        gchar* uri;
-
         if (g_object_get_data (G_OBJECT (download), "save-as-download"))
         {
             GtkWidget* dialog = gtk_file_chooser_dialog_new (
@@ -1286,6 +1283,9 @@ midori_view_download_requested_cb (GtkWidget*      view,
         else
         {
             gchar* folder;
+            gchar* filename;
+            gchar* uri;
+
             if (g_object_get_data (G_OBJECT (download), "open-download"))
                 folder = g_strdup (g_get_tmp_dir ());
             else
@@ -4395,7 +4395,6 @@ midori_browser_set_history (MidoriBrowser* browser,
                             KatzeArray*    history)
 {
     KatzeItem* recently_visited;
-    GtkAction* action;
     time_t now;
     gint64 day;