From 3038ae6adbb61e55d6c665dea0c5271e0c9f0ed8 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 30 Nov 2012 08:24:13 +0200 Subject: [PATCH] [OTLayout] Minor --- src/hb-ot-layout-gpos-table.hh | 4 ---- src/hb-ot-layout-gsub-table.hh | 4 ---- src/hb-ot-layout.cc | 4 ++-- 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/hb-ot-layout-gpos-table.hh b/src/hb-ot-layout-gpos-table.hh index 8f0d38fee..5ec7e0788 100644 --- a/src/hb-ot-layout-gpos-table.hh +++ b/src/hb-ot-layout-gpos-table.hh @@ -1521,10 +1521,6 @@ struct GPOS : GSUBGPOS inline const PosLookup& get_lookup (unsigned int i) const { return CastR (GSUBGPOS::get_lookup (i)); } - template - inline void add_coverage (set_t *glyphs, unsigned int lookup_index) const - { get_lookup (lookup_index).add_coverage (glyphs); } - static inline void position_start (hb_font_t *font, hb_buffer_t *buffer); static inline void position_finish (hb_font_t *font, hb_buffer_t *buffer, hb_bool_t zero_width_attahced_marks); diff --git a/src/hb-ot-layout-gsub-table.hh b/src/hb-ot-layout-gsub-table.hh index 373cf6955..69572ef63 100644 --- a/src/hb-ot-layout-gsub-table.hh +++ b/src/hb-ot-layout-gsub-table.hh @@ -1341,10 +1341,6 @@ struct GSUB : GSUBGPOS inline const SubstLookup& get_lookup (unsigned int i) const { return CastR (GSUBGPOS::get_lookup (i)); } - template - inline void add_coverage (set_t *glyphs, unsigned int lookup_index) const - { get_lookup (lookup_index).add_coverage (glyphs); } - static inline void substitute_start (hb_font_t *font, hb_buffer_t *buffer); static inline void substitute_finish (hb_font_t *font, hb_buffer_t *buffer); diff --git a/src/hb-ot-layout.cc b/src/hb-ot-layout.cc index 5accbcf08..df5c8364c 100644 --- a/src/hb-ot-layout.cc +++ b/src/hb-ot-layout.cc @@ -71,9 +71,9 @@ _hb_ot_layout_create (hb_face_t *face) } for (unsigned int i = 0; i < layout->gsub_lookup_count; i++) - layout->gsub->add_coverage (&layout->gsub_digests[i], i); + layout->gsub->get_lookup (i).add_coverage (&layout->gsub_digests[i]); for (unsigned int i = 0; i < layout->gpos_lookup_count; i++) - layout->gpos->add_coverage (&layout->gpos_digests[i], i); + layout->gpos->get_lookup (i).add_coverage (&layout->gpos_digests[i]); return layout; }