[pango/hb-getters] Cosmetic cleanups



commit d281114b501dba49b4f654c7f3502f4684bc4968
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Oct 15 17:56:44 2018 -0400

    Cosmetic cleanups

 pango/pangofc-font.c    | 5 +----
 pango/pangofc-fontmap.c | 3 +--
 2 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/pango/pangofc-font.c b/pango/pangofc-font.c
index d26a11e3..ee51444d 100644
--- a/pango/pangofc-font.c
+++ b/pango/pangofc-font.c
@@ -1076,8 +1076,5 @@ pango_fc_font_get_hb_font (PangoFont *font)
 
   hb_face = pango_fc_font_map_get_hb_face (PANGO_FC_FONT_MAP (fcfont->fontmap), fcfont);
 
-  if (hb_face)
-    return hb_font_create (hb_face);
-
-  return NULL;
+  return hb_font_create (hb_face);
 }
diff --git a/pango/pangofc-fontmap.c b/pango/pangofc-fontmap.c
index 5a9389a8..1fb66235 100644
--- a/pango/pangofc-fontmap.c
+++ b/pango/pangofc-fontmap.c
@@ -297,8 +297,7 @@ pango_fc_font_face_data_free (PangoFcFontFaceData *data)
   if (data->cmap_cache)
     _pango_fc_cmap_cache_unref (data->cmap_cache);
 
-  if (data->hb_face)
-    hb_face_destroy (data->hb_face);
+  hb_face_destroy (data->hb_face);
 
   g_slice_free (PangoFcFontFaceData, data);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]