From 683fad062792a199e2fe86fe161f41b9389d08c3 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 22 Oct 2018 16:35:03 -0700 Subject: [PATCH] [color] Minor --- src/hb-ot-color.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/hb-ot-color.cc b/src/hb-ot-color.cc index 3ca8751..59f7da7 100644 --- a/src/hb-ot-color.cc +++ b/src/hb-ot-color.cc @@ -161,8 +161,7 @@ hb_ot_color_palette_flags_t hb_ot_color_palette_get_flags (hb_face_t *face, unsigned int palette_index) { - const OT::CPAL& cpal = _get_cpal(face); - return cpal.get_palette_flags (palette_index); + return _get_cpal(face).get_palette_flags (palette_index); } /** @@ -258,6 +257,5 @@ hb_ot_color_glyph_get_layers (hb_face_t *face, unsigned int *count, /* IN/OUT. May be NULL. */ hb_ot_color_layer_t *layers /* OUT. May be NULL. */) { - const OT::COLR& colr = _get_colr (face); - return colr.get_glyph_layers (glyph, start_offset, count, layers); + return _get_colr (face).get_glyph_layers (glyph, start_offset, count, layers); } -- 2.7.4