[bit-set] Remove unused get_min(inverted)

This commit is contained in:
Behdad Esfahbod 2021-08-19 13:23:22 -06:00
parent eec1a25e71
commit ee4e331a6e
1 changed files with 3 additions and 13 deletions

View File

@ -711,26 +711,16 @@ struct hb_bit_set_t
population = pop; population = pop;
return 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; unsigned count = pages.length;
for (unsigned i = 0; i < count; i++) for (unsigned i = 0; i < count; i++)
{ {
const auto& map = page_map[i]; const auto& map = page_map[i];
const auto& page = pages[map.index]; const auto& page = pages[map.index];
if (inverted) if (!page.is_empty ())
{ return map.major * page_t::PAGE_BITS + page.get_min ();
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);
} }
return INVALID; return INVALID;
} }