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>
This commit is contained in:
Jeff Morriss 2016-03-27 11:35:36 -04:00
parent 1fe8d892dd
commit 93ac8364f1
2 changed files with 2 additions and 18 deletions

View File

@ -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);

View File

@ -97,7 +97,6 @@ WiresharkApplication *wsApp = NULL;
// MUST be UTF-8
static char *last_open_dir = NULL;
static bool updated_last_open_dir = FALSE;
static QList<recent_item_status *> recent_items_;
static QHash<int, QList<QAction *> > dynamic_menu_groups_;
static QHash<int, QList<QAction *> > added_menu_groups_;
@ -461,15 +460,8 @@ void WiresharkApplication::setLastOpenDir(const char *dir_name)
new_last_open_dir = g_strconcat(dir_name,
G_DIR_SEPARATOR_S, (char *)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);