From: John Darrington Date: Thu, 16 Apr 2009 13:10:29 +0000 (+0800) Subject: remove superfluous tests X-Git-Tag: sav-api~656 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp;a=commitdiff_plain;h=b93e51996d294eabe7bb43c33747c283cc865e11 remove superfluous tests --- diff --git a/lib/gtk-contrib/psppire-sheet.c b/lib/gtk-contrib/psppire-sheet.c index bb99d1e328..87547e8431 100644 --- a/lib/gtk-contrib/psppire-sheet.c +++ b/lib/gtk-contrib/psppire-sheet.c @@ -2141,11 +2141,8 @@ psppire_sheet_unmap (GtkWidget *widget) gdk_window_hide (sheet->row_title_window); gdk_window_hide (widget->window); - if (GTK_WIDGET_MAPPED (sheet->entry_widget)) - gtk_widget_unmap (sheet->entry_widget); - - if (GTK_WIDGET_MAPPED (sheet->button)) - gtk_widget_unmap (sheet->button); + gtk_widget_unmap (sheet->entry_widget); + gtk_widget_unmap (sheet->button); } /* get cell attributes of the given cell */