From 2bb0fa878a3c1f51bb9d944829465bc1a4262d37 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 26 Jun 2022 16:43:05 -0600 Subject: [PATCH] [glyf] Remove unneeded point init() --- src/OT/glyf/Glyph.hh | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/OT/glyf/Glyph.hh b/src/OT/glyf/Glyph.hh index 014c44e9d..6ab23c85b 100644 --- a/src/OT/glyf/Glyph.hh +++ b/src/OT/glyf/Glyph.hh @@ -92,8 +92,6 @@ struct Glyph /* pseudo component points for each component in composite glyph */ unsigned num_points = hb_len (CompositeGlyph (*header, bytes).iter ()); if (unlikely (!points.resize (num_points))) return false; - for (unsigned i = 0; i < points.length; i++) - points[i].init (); break; } case SIMPLE: @@ -107,7 +105,6 @@ struct Glyph if (unlikely (!points.resize (points.length + PHANTOM_COUNT))) return false; hb_array_t phantoms = points.sub_array (points.length - PHANTOM_COUNT, PHANTOM_COUNT); { - for (unsigned i = 0; i < PHANTOM_COUNT; ++i) phantoms[i].init (); int h_delta = (int) header->xMin - glyf_accelerator.hmtx->get_side_bearing (gid); int v_orig = (int) header->yMax +