mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 06:10:15 +00:00
file chooser: remove an unused GError variable
Pointed out by coverity
This commit is contained in:
parent
2eb39a3b7a
commit
a9ee745dc1
@ -6769,7 +6769,6 @@ gtk_file_chooser_widget_should_respond (GtkFileChooserEmbed *chooser_embed)
|
||||
gboolean is_well_formed, is_empty, is_file_part_empty;
|
||||
gboolean is_folder;
|
||||
GtkFileChooserEntry *entry;
|
||||
GError *error;
|
||||
|
||||
save_entry:
|
||||
|
||||
@ -6818,7 +6817,6 @@ gtk_file_chooser_widget_should_respond (GtkFileChooserEmbed *chooser_embed)
|
||||
|
||||
g_assert (file != NULL);
|
||||
|
||||
error = NULL;
|
||||
if (is_folder)
|
||||
{
|
||||
if (priv->action == GTK_FILE_CHOOSER_ACTION_OPEN ||
|
||||
@ -6864,9 +6862,6 @@ gtk_file_chooser_widget_should_respond (GtkFileChooserEmbed *chooser_embed)
|
||||
data);
|
||||
|
||||
set_busy_cursor (impl, TRUE);
|
||||
|
||||
if (error != NULL)
|
||||
g_error_free (error);
|
||||
}
|
||||
|
||||
g_object_unref (file);
|
||||
|
Loading…
Reference in New Issue
Block a user