From be89919a7097d6ba1fa4e3042627d13fac545e53 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 22 Nov 2022 13:56:20 -0700 Subject: [PATCH] [gvar] is_valid() remove a check I don't know why this check was there, but it doesn't make sense because that function never returns 0 / false. --- src/hb-ot-var-gvar-table.hh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/hb-ot-var-gvar-table.hh b/src/hb-ot-var-gvar-table.hh index 316be8b19..fcdcb54f7 100644 --- a/src/hb-ot-var-gvar-table.hh +++ b/src/hb-ot-var-gvar-table.hh @@ -231,8 +231,7 @@ struct GlyphVariationData return (index < var_data->tupleVarCount.get_count ()) && var_data_bytes.check_range (current_tuple, TupleVariationHeader::min_size) && var_data_bytes.check_range (current_tuple, hb_max (current_tuple->get_data_size (), - current_tuple->get_size (axis_count))) && - current_tuple->get_size (axis_count); + current_tuple->get_size (axis_count))); } bool move_to_next ()