[dispatch] Minor
authorBehdad Esfahbod <behdad@behdad.org>
Wed, 12 Dec 2018 15:07:38 +0000 (10:07 -0500)
committerBehdad Esfahbod <behdad@behdad.org>
Wed, 12 Dec 2018 15:07:38 +0000 (10:07 -0500)
src/hb-ot-layout-gpos-table.hh
src/hb-ot-layout-gsub-table.hh

index 32ed13c..09f12b4 100644 (file)
@@ -1535,7 +1535,6 @@ struct PosLookupSubTable
   inline typename context_t::return_t dispatch (context_t *c, unsigned int lookup_type) const
   {
     TRACE_DISPATCH (this, lookup_type);
-    if (unlikely (!c->may_dispatch (this, &u.sub_format))) return_trace (c->no_dispatch_return_value ());
     switch (lookup_type) {
     case Single:               return_trace (u.single.dispatch (c));
     case Pair:                 return_trace (u.pair.dispatch (c));
@@ -1552,7 +1551,6 @@ struct PosLookupSubTable
 
   protected:
   union {
-  HBUINT16             sub_format;
   SinglePos            single;
   PairPos              pair;
   CursivePos           cursive;
@@ -1564,7 +1562,7 @@ struct PosLookupSubTable
   ExtensionPos         extension;
   } u;
   public:
-  DEFINE_SIZE_UNION (2, sub_format);
+  DEFINE_SIZE_MIN (0);
 };
 
 
index 04db198..1af6987 100644 (file)
@@ -1273,7 +1273,6 @@ struct SubstLookupSubTable
   inline typename context_t::return_t dispatch (context_t *c, unsigned int lookup_type) const
   {
     TRACE_DISPATCH (this, lookup_type);
-    if (unlikely (!c->may_dispatch (this, &u.sub_format))) return_trace (c->no_dispatch_return_value ());
     switch (lookup_type) {
     case Single:               return_trace (u.single.dispatch (c));
     case Multiple:             return_trace (u.multiple.dispatch (c));
@@ -1289,7 +1288,6 @@ struct SubstLookupSubTable
 
   protected:
   union {
-  HBUINT16                     sub_format;
   SingleSubst                  single;
   MultipleSubst                        multiple;
   AlternateSubst               alternate;
@@ -1300,7 +1298,7 @@ struct SubstLookupSubTable
   ReverseChainSingleSubst      reverseChainContextSingle;
   } u;
   public:
-  DEFINE_SIZE_UNION (2, sub_format);
+  DEFINE_SIZE_MIN (0);
 };