From a5f516c8186bdf128d7f34c1681f3eb49d7f490e Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Fri, 16 Sep 2011 10:26:55 +0200 Subject: [PATCH] fontchooser: Family or face can never be NULL ... so there's no need to special-case those situations. --- gtk/gtkfontchooserwidget.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/gtk/gtkfontchooserwidget.c b/gtk/gtkfontchooserwidget.c index 71475f9cf7..1b391b52a8 100644 --- a/gtk/gtkfontchooserwidget.c +++ b/gtk/gtkfontchooserwidget.c @@ -444,16 +444,6 @@ cursor_changed_cb (GtkTreeView *treeview, gtk_tree_path_free (path); path = NULL; - if (face == NULL || family == NULL) - { - if (face) - g_object_unref (face); - if (family) - g_object_unref (family); - - return; - } - desc = pango_font_face_describe (face); pango_font_description_set_size (desc, priv->size); gtk_widget_override_font (priv->preview, desc);