From 6b599dac1f814a3c900300241d4c492a8f8b66d2 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 17 Feb 2015 16:04:07 +0300 Subject: [PATCH] Remove unnecessary check in sanitize --- src/hb-ot-layout-gpos-table.hh | 2 -- src/hb-ot-layout-gsub-table.hh | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/hb-ot-layout-gpos-table.hh b/src/hb-ot-layout-gpos-table.hh index ad0633b64..994a16963 100644 --- a/src/hb-ot-layout-gpos-table.hh +++ b/src/hb-ot-layout-gpos-table.hh @@ -1415,8 +1415,6 @@ struct PosLookupSubTable inline bool sanitize (hb_sanitize_context_t *c, unsigned int lookup_type) { TRACE_SANITIZE (this); - if (!u.header.sub_format.sanitize (c)) - return TRACE_RETURN (false); switch (lookup_type) { case Single: return TRACE_RETURN (u.single.sanitize (c)); case Pair: return TRACE_RETURN (u.pair.sanitize (c)); diff --git a/src/hb-ot-layout-gsub-table.hh b/src/hb-ot-layout-gsub-table.hh index 6495335b2..4c9aac0bb 100644 --- a/src/hb-ot-layout-gsub-table.hh +++ b/src/hb-ot-layout-gsub-table.hh @@ -1116,8 +1116,6 @@ struct SubstLookupSubTable inline bool sanitize (hb_sanitize_context_t *c, unsigned int lookup_type) { TRACE_SANITIZE (this); - if (!u.header.sub_format.sanitize (c)) - return TRACE_RETURN (false); switch (lookup_type) { case Single: return TRACE_RETURN (u.single.sanitize (c)); case Multiple: return TRACE_RETURN (u.multiple.sanitize (c));