From 0120ce9679aab3ac936aeb18f6709529eef000a4 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 1 Aug 2012 21:56:35 -0400 Subject: [PATCH] [GSUB/GPOS] Remove unused get_coverage() methods --- src/hb-ot-layout-gpos-table.hh | 11 ----------- src/hb-ot-layout-gsub-table.hh | 11 ----------- 2 files changed, 22 deletions(-) diff --git a/src/hb-ot-layout-gpos-table.hh b/src/hb-ot-layout-gpos-table.hh index 34b9723..c9afd31 100644 --- a/src/hb-ot-layout-gpos-table.hh +++ b/src/hb-ot-layout-gpos-table.hh @@ -1500,17 +1500,6 @@ struct PosLookup : Lookup inline const PosLookupSubTable& get_subtable (unsigned int i) const { return this+CastR > (subTable)[i]; } - inline const Coverage *get_coverage (void) const - { - /* Only return non-NULL if there's just one Coverage table we care about. */ - const Coverage *c = &get_subtable (0).get_coverage (get_type ()); - unsigned int count = get_subtable_count (); - for (unsigned int i = 1; i < count; i++) - if (c != &get_subtable (i).get_coverage (get_type ())) - return NULL; - return c; - } - template inline void add_coverage (set_t *glyphs) const { diff --git a/src/hb-ot-layout-gsub-table.hh b/src/hb-ot-layout-gsub-table.hh index 182f780..b836df9 100644 --- a/src/hb-ot-layout-gsub-table.hh +++ b/src/hb-ot-layout-gsub-table.hh @@ -1154,17 +1154,6 @@ struct SubstLookup : Lookup get_subtable (i).closure (c, lookup_type); } - inline const Coverage *get_coverage (void) const - { - /* Only return non-NULL if there's just one Coverage table we care about. */ - const Coverage *c = &get_subtable (0).get_coverage (get_type ()); - unsigned int count = get_subtable_count (); - for (unsigned int i = 1; i < count; i++) - if (c != &get_subtable (i).get_coverage (get_type ())) - return NULL; - return c; - } - template inline void add_coverage (set_t *glyphs) const { -- 2.7.4