[arrays] Remove one flavor of hb_vector_t.qsort()

This commit is contained in:
Behdad Esfahbod 2018-11-24 01:42:17 -05:00
parent 7c1600dcd9
commit e3face8e79

View File

@ -225,13 +225,9 @@ struct hb_vector_t
::qsort (arrayZ(), len, sizeof (Type), cmp);
}
inline void qsort (void)
{
::qsort (arrayZ(), len, sizeof (Type), Type::cmp);
}
inline void qsort (unsigned int start, unsigned int end)
inline void qsort (unsigned int start = 0, unsigned int end = (unsigned int) -1)
{
end = MIN (end, len);
::qsort (arrayZ() + start, end - start, sizeof (Type), Type::cmp);
}