From 06ec8896af725b80d9adc7f94699001b0dc23489 Mon Sep 17 00:00:00 2001 From: rbuj Date: Wed, 8 Apr 2020 11:59:34 +0200 Subject: Remove unused-variable warnings --- charpick/charpick.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'charpick') diff --git a/charpick/charpick.c b/charpick/charpick.c index 6d9d4a19..97d36802 100644 --- a/charpick/charpick.c +++ b/charpick/charpick.c @@ -274,12 +274,11 @@ static void menuitem_activated (GtkMenuItem *menuitem, charpick_data *curr_data) { gchar *string; - MatePanelApplet *applet = MATE_PANEL_APPLET (curr_data->applet); - + string = g_object_get_data (G_OBJECT (menuitem), "string"); if (g_ascii_strcasecmp (curr_data->charlist, string) == 0) return; - + curr_data->charlist = string; build_table (curr_data); if (g_settings_is_writable (curr_data->settings, "current-list")) @@ -642,10 +641,9 @@ save_chartable (charpick_data *curr_data) static void get_chartable (charpick_data *curr_data) { - MatePanelApplet *applet = MATE_PANEL_APPLET (curr_data->applet); gint i, n; GList *value = NULL; - + value = mate_panel_applet_settings_get_glist (curr_data->settings, "chartable"); if (value) { curr_data->chartable = value; @@ -654,16 +652,13 @@ get_chartable (charpick_data *curr_data) n = G_N_ELEMENTS (chartable); for (i=0; ichartable = g_list_append (curr_data->chartable, string); - } if ( ! g_settings_is_writable (curr_data->settings, "chartable")) save_chartable (curr_data); } - - } static const GtkActionEntry charpick_applet_menu_actions [] = { -- cgit v1.2.1