Remove unused variable 'action' and move declarations into a block

This commit is contained in:
Enrico Tröger 2009-06-03 01:13:24 +02:00 committed by Christian Dywan
parent f9ac1af55d
commit 144eb69e5c

View file

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