From: John Darrington Date: Sat, 15 Jun 2013 04:44:22 +0000 (+0200) Subject: psppire_var_type_dialog: Remove global functions which are not used X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79741814541130f36c8d0cc5ee64fc5a959ca255;p=pspp psppire_var_type_dialog: Remove global functions which are not used --- diff --git a/src/ui/gui/var-type-dialog.c b/src/ui/gui/var-type-dialog.c index 8ca7b1c92d..a44b04465b 100644 --- a/src/ui/gui/var-type-dialog.c +++ b/src/ui/gui/var-type-dialog.c @@ -84,6 +84,9 @@ static GObject *psppire_var_type_dialog_constructor (GType type, guint, GObjectConstructParam *); static void psppire_var_type_dialog_set_state (PsppireVarTypeDialog *); +static void psppire_var_type_dialog_set_format (PsppireVarTypeDialog *dialog, + const struct fmt_spec *format); + static int find_format (const struct fmt_spec *target, const struct fmt_spec formats[], int n_formats); static int find_format_type (int target, const int types[], int n_types); @@ -145,7 +148,7 @@ psppire_var_type_dialog_get_property (GObject *object, } } -void +static void psppire_var_type_dialog_set_format (PsppireVarTypeDialog *dialog, const struct fmt_spec *format) { @@ -153,7 +156,7 @@ psppire_var_type_dialog_set_format (PsppireVarTypeDialog *dialog, psppire_var_type_dialog_set_state (dialog); } -const struct fmt_spec * +static const struct fmt_spec * psppire_var_type_dialog_get_format (const PsppireVarTypeDialog *dialog) { return &dialog->fmt_l; diff --git a/src/ui/gui/var-type-dialog.h b/src/ui/gui/var-type-dialog.h index b2d58d2a73..32c160f052 100644 --- a/src/ui/gui/var-type-dialog.h +++ b/src/ui/gui/var-type-dialog.h @@ -102,11 +102,6 @@ struct _PsppireVarTypeDialogClass { GType psppire_var_type_dialog_get_type (void) G_GNUC_CONST; PsppireVarTypeDialog* psppire_var_type_dialog_new (const struct fmt_spec *); -void psppire_var_type_dialog_set_format (PsppireVarTypeDialog *, - const struct fmt_spec *); -const struct fmt_spec *psppire_var_type_dialog_get_format ( - const PsppireVarTypeDialog *); - void psppire_var_type_dialog_run (GtkWindow *parent_window, struct fmt_spec *format);