From ee4e331a6e05ce5e99671a401e986c0fcdd2a691 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 19 Aug 2021 13:23:22 -0600 Subject: [PATCH] [bit-set] Remove unused get_min(inverted) --- src/hb-bit-set.hh | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/src/hb-bit-set.hh b/src/hb-bit-set.hh index 065b85f1b..a4a2aed2a 100644 --- a/src/hb-bit-set.hh +++ b/src/hb-bit-set.hh @@ -711,26 +711,16 @@ struct hb_bit_set_t population = pop; return pop; } - hb_codepoint_t get_min (bool inverted = false) const + hb_codepoint_t get_min () const { - unsigned last_major = (unsigned) -1; - unsigned count = pages.length; for (unsigned i = 0; i < count; i++) { const auto& map = page_map[i]; const auto& page = pages[map.index]; - if (inverted) - { - if (last_major + 1 != map.major) - return (last_major + 1) * page_t::PAGE_BITS; - - last_major = map.major; - } - - if (!page.is_empty (inverted)) - return map.major * page_t::PAGE_BITS + page.get_min (inverted); + if (!page.is_empty ()) + return map.major * page_t::PAGE_BITS + page.get_min (); } return INVALID; }