diff --git a/src/hb-ot-layout-gpos-table.hh b/src/hb-ot-layout-gpos-table.hh index 8f0d38feebad5a464ef4490e8d42386a3fdb91f5..5ec7e078801b18f5e99f535f5ee39b69df2d681e 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 373cf6955d298e8271dbf3b063339d6b2326d0e5..69572ef63dd410804ac6a3bd8043dfc51bda8329 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 5accbcf086261ca2add3510a16543c76a0fb30ab..df5c8364cb28c22ab4a3ea3617274bc3c2cf38ee 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; }