diff options
author | Matthias Clasen <mclasen@redhat.com> | 2023-02-04 15:48:27 +0100 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2023-02-04 15:48:27 +0100 |
commit | 26b5ec3555bb462f9d74aa860b5714cb47cb149e (patch) | |
tree | f966559d29efe187ba44394c660a9da9aae35c84 /pango | |
parent | fad3e7690845f128aa0beba9adaae7038c01269f (diff) | |
download | pango-26b5ec3555bb462f9d74aa860b5714cb47cb149e.tar.gz |
Drop an unnecessary conditional
It was added my mistake. This is not new
harfbuzz api.
Diffstat (limited to 'pango')
-rw-r--r-- | pango/shape.c | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/pango/shape.c b/pango/shape.c index a69207bf..e666bb3d 100644 --- a/pango/shape.c +++ b/pango/shape.c @@ -299,24 +299,6 @@ find_text_transform (const PangoAnalysis *analysis) return transform; } -static inline gboolean -face_has_layers (hb_face_t *face) -{ -#ifdef HAVE_HB_OT_COLOR_HAS_LAYERS - return hb_ot_color_has_layers (face); -#else - hb_blob_t *blob; - gboolean ret; - - blob = hb_face_reference_table (face, HB_TAG ('C','O','L','R')); - ret = blob != hb_blob_get_empty (); - - hb_blob_destroy (blob); - - return ret; -#endif -} - static gboolean font_has_color (hb_font_t *font) { @@ -324,7 +306,9 @@ font_has_color (hb_font_t *font) face = hb_font_get_face (font); - return face_has_layers (face) || hb_ot_color_has_png (face) || hb_ot_color_has_svg (face); + return hb_ot_color_has_layers (face) || + hb_ot_color_has_png (face) || + hb_ot_color_has_svg (face); } static gboolean |