From f1bfb6585f96839f45633f856c290ebb3a0da1ea Mon Sep 17 00:00:00 2001 From: Garret Rieger Date: Thu, 28 Jul 2022 21:01:41 +0000 Subject: [PATCH] [repacker] cleanup debug prints. --- src/graph/pairpos-graph.hh | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/src/graph/pairpos-graph.hh b/src/graph/pairpos-graph.hh index 8d95a06ff..777867c0a 100644 --- a/src/graph/pairpos-graph.hh +++ b/src/graph/pairpos-graph.hh @@ -36,14 +36,10 @@ struct PairPosFormat1 : public OT::Layout::GPOS_impl::PairPosFormat1_3 split_subtables (gsubgpos_graph_context_t& c, unsigned this_index) { - printf("Checking if pair pos %u needs splits...\n", this_index); hb_set_t visited; const unsigned base_size = OT::Layout::GPOS_impl::PairPosFormat1_3::min_size; - printf(" base_size = %u\n", base_size); unsigned accumulated = base_size; // TODO: include coverage size - unsigned num_pair_sets = pairSet.len; - printf(" num_pair_sets = %u\n", num_pair_sets); hb_vector_t split_points; for (unsigned i = 0; i < pairSet.len; i++) { @@ -51,9 +47,8 @@ struct PairPosFormat1 : public OT::Layout::GPOS_impl::PairPosFormat1_3 (1 << 13)) // TODO (1 << 16) + if (accumulated > (1 << 16)) { - printf(" PairPos split needed %u/%u\n", i, num_pair_sets); split_points.push (i); accumulated = base_size; } @@ -103,7 +98,10 @@ struct PairPosFormat1 : public OT::Layout::GPOS_impl::PairPosFormat1_3= old_count) return true; @@ -133,7 +131,8 @@ struct PairPosFormat1 : public OT::Layout::GPOS_impl::PairPosFormat1_3::min_size @@ -230,8 +229,6 @@ struct PairPos : public OT::Layout::GPOS_impl::PairPos { hb_vector_t split_subtables (gsubgpos_graph_context_t& c, unsigned this_index) { - unsigned format = u.format; - printf("PairPos::format = %u\n", format); switch (u.format) { case 1: return ((PairPosFormat1*)(&u.format1))->split_subtables (c, this_index);