diff options
author | Jeff Morriss <jeff.morriss.ws@gmail.com> | 2016-03-27 11:35:36 -0400 |
---|---|---|
committer | Jeff Morriss <jeff.morriss.ws@gmail.com> | 2016-03-29 17:57:51 +0000 |
commit | 93ac8364f1397f1bb758d9387016b1cd0fff3eb0 (patch) | |
tree | 893074715dd6b1ec461d133af68ed1ef23f6cc6e /ui/gtk/file_dlg.c | |
parent | 1fe8d892dd57a1a2268264ff544397658366908d (diff) |
Remove an unused variable from both the Gtk and Qt UIs.
Change-Id: I4c7c5aeaa1fa452605cf02a5c86dfe161c451f65
Reviewed-on: https://code.wireshark.org/review/14654
Reviewed-by: Michael Mann <mmann78@netscape.net>
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Jeff Morriss <jeff.morriss.ws@gmail.com>
Diffstat (limited to 'ui/gtk/file_dlg.c')
-rw-r--r-- | ui/gtk/file_dlg.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/ui/gtk/file_dlg.c b/ui/gtk/file_dlg.c index fa7c3f1fd7..aff41f0098 100644 --- a/ui/gtk/file_dlg.c +++ b/ui/gtk/file_dlg.c @@ -58,7 +58,6 @@ static gchar *last_open_dir = NULL; -static gboolean updated_last_open_dir = FALSE; static void file_selection_browse_destroy_cb(GtkWidget *win, GtkWidget* file_te); @@ -447,15 +446,8 @@ set_last_open_dir(const char *dirname) new_last_open_dir = g_strconcat(dirname, G_DIR_SEPARATOR_S, NULL); } - - if (last_open_dir == NULL || - strcmp(last_open_dir, new_last_open_dir) != 0) - updated_last_open_dir = TRUE; - } - else { + } else { new_last_open_dir = NULL; - if (last_open_dir != NULL) - updated_last_open_dir = TRUE; } g_free(last_open_dir); |