remove superfluous tests
authorJohn Darrington <john@darrington.wattle.id.au>
Thu, 16 Apr 2009 13:10:29 +0000 (21:10 +0800)
committerJohn Darrington <john@darrington.wattle.id.au>
Thu, 16 Apr 2009 13:10:29 +0000 (21:10 +0800)
lib/gtk-contrib/psppire-sheet.c

index bb99d1e32899812f3ac9143acb6c3c14dbf73359..87547e84317bf3810fd1bfc801a17362bfd3359f 100644 (file)
@@ -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 */