From: Ben Pfaff Date: Wed, 10 Feb 2010 05:10:43 +0000 (-0800) Subject: gui: Remove write-only variable 'new_type' from on_var_type_ok_clicked(). X-Git-Tag: v0.7.4~9 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp-builds.git;a=commitdiff_plain;h=357ab70a77c59782866a3a5364e229c7d20bb0c5 gui: Remove write-only variable 'new_type' from on_var_type_ok_clicked(). Found using coccinelle and coccicheck (http://coccinelle.lip6.fr/). --- diff --git a/src/ui/gui/var-type-dialog.c b/src/ui/gui/var-type-dialog.c index d93d88cf..5ba028d4 100644 --- a/src/ui/gui/var-type-dialog.c +++ b/src/ui/gui/var-type-dialog.c @@ -1,5 +1,5 @@ /* PSPPIRE - a graphical user interface for PSPP. - Copyright (C) 2005, 2006 Free Software Foundation + Copyright (C) 2005, 2006, 2010 Free Software Foundation This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -790,14 +790,12 @@ on_var_type_ok_clicked (GtkWidget *w, gpointer data) gint decimals = atoi (gtk_entry_get_text (GTK_ENTRY (dialog->entry_decimals))); - gint new_type = VAL_NUMERIC; gint new_width = 0; bool result = false; struct fmt_spec spec; switch (dialog->active_button) { case BUTTON_STRING: - new_type = VAL_STRING; new_width = width; result = make_output_format_try (&spec, FMT_A, width, 0); break;