[HarfBuzz] harfbuzz-ng: Branch 'master'

Behdad Esfahbod behdad at kemper.freedesktop.org
Wed Aug 1 18:58:27 PDT 2012


 src/hb-ot-layout-gpos-table.hh |   11 -----------
 src/hb-ot-layout-gsub-table.hh |   11 -----------
 2 files changed, 22 deletions(-)

New commits:
commit 0120ce9679aab3ac936aeb18f6709529eef000a4
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Wed Aug 1 21:56:35 2012 -0400

    [GSUB/GPOS] Remove unused get_coverage() methods

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<OffsetArrayOf<PosLookupSubTable> > (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 <typename set_t>
   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 <typename set_t>
   inline void add_coverage (set_t *glyphs) const
   {



More information about the HarfBuzz mailing list