From 3bf77e029c401d93ed18da2d72e17dc58f0ad890 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sun, 22 Sep 2013 22:19:12 -0700 Subject: [PATCH] gui: Remove unused dictionary parameter from missing_values_to_string(). --- src/ui/gui/psppire-dialog-action-var-info.c | 2 +- src/ui/gui/psppire-var-sheet.c | 2 +- src/ui/gui/var-display.c | 2 +- src/ui/gui/var-display.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ui/gui/psppire-dialog-action-var-info.c b/src/ui/gui/psppire-dialog-action-var-info.c index 0c17222fa3..e57df9a0ba 100644 --- a/src/ui/gui/psppire-dialog-action-var-info.c +++ b/src/ui/gui/psppire-dialog-action-var-info.c @@ -119,7 +119,7 @@ populate_text (PsppireDictView *treeview, gpointer data) g_string_append_printf (gstring, _("Type: %s\n"), buffer); } - text = missing_values_to_string (dict, var, NULL); + text = missing_values_to_string (var, NULL); g_string_append_printf (gstring, _("Missing Values: %s\n"), text); g_free (text); diff --git a/src/ui/gui/psppire-var-sheet.c b/src/ui/gui/psppire-var-sheet.c index 02e880db36..5cd839651b 100644 --- a/src/ui/gui/psppire-var-sheet.c +++ b/src/ui/gui/psppire-var-sheet.c @@ -457,7 +457,7 @@ render_var_cell (PsppSheetViewColumn *tree_column, case VS_MISSING: { - char *text = missing_values_to_string (var_sheet->dict, var, NULL); + char *text = missing_values_to_string (var, NULL); g_object_set (cell, "text", text, "editable", FALSE, diff --git a/src/ui/gui/var-display.c b/src/ui/gui/var-display.c index db0020f4f4..f779f4b1c1 100644 --- a/src/ui/gui/var-display.c +++ b/src/ui/gui/var-display.c @@ -17,7 +17,7 @@ static const gchar none[] = N_("None"); gchar * -missing_values_to_string (const PsppireDict *dict, const struct variable *pv, GError **err) +missing_values_to_string (const struct variable *pv, GError **err) { gchar *s; const struct missing_values *miss = var_get_missing_values (pv); diff --git a/src/ui/gui/var-display.h b/src/ui/gui/var-display.h index a3592f6274..f70e1facfb 100644 --- a/src/ui/gui/var-display.h +++ b/src/ui/gui/var-display.h @@ -26,6 +26,6 @@ struct variable; #define n_ALIGNMENTS 3 -gchar *missing_values_to_string (const PsppireDict *dict, const struct variable *pv, GError **err); +gchar *missing_values_to_string (const struct variable *pv, GError **err); #endif -- 2.30.2