Remove unnecessary check in sanitize
This commit is contained in:
parent
365576d246
commit
6b599dac1f
|
@ -1415,8 +1415,6 @@ struct PosLookupSubTable
|
||||||
|
|
||||||
inline bool sanitize (hb_sanitize_context_t *c, unsigned int lookup_type) {
|
inline bool sanitize (hb_sanitize_context_t *c, unsigned int lookup_type) {
|
||||||
TRACE_SANITIZE (this);
|
TRACE_SANITIZE (this);
|
||||||
if (!u.header.sub_format.sanitize (c))
|
|
||||||
return TRACE_RETURN (false);
|
|
||||||
switch (lookup_type) {
|
switch (lookup_type) {
|
||||||
case Single: return TRACE_RETURN (u.single.sanitize (c));
|
case Single: return TRACE_RETURN (u.single.sanitize (c));
|
||||||
case Pair: return TRACE_RETURN (u.pair.sanitize (c));
|
case Pair: return TRACE_RETURN (u.pair.sanitize (c));
|
||||||
|
|
|
@ -1116,8 +1116,6 @@ struct SubstLookupSubTable
|
||||||
|
|
||||||
inline bool sanitize (hb_sanitize_context_t *c, unsigned int lookup_type) {
|
inline bool sanitize (hb_sanitize_context_t *c, unsigned int lookup_type) {
|
||||||
TRACE_SANITIZE (this);
|
TRACE_SANITIZE (this);
|
||||||
if (!u.header.sub_format.sanitize (c))
|
|
||||||
return TRACE_RETURN (false);
|
|
||||||
switch (lookup_type) {
|
switch (lookup_type) {
|
||||||
case Single: return TRACE_RETURN (u.single.sanitize (c));
|
case Single: return TRACE_RETURN (u.single.sanitize (c));
|
||||||
case Multiple: return TRACE_RETURN (u.multiple.sanitize (c));
|
case Multiple: return TRACE_RETURN (u.multiple.sanitize (c));
|
||||||
|
|
Loading…
Reference in New Issue