From e3face8e791d677f94154e8a7f3d787d0d69a02f Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sat, 24 Nov 2018 01:42:17 -0500 Subject: [PATCH] [arrays] Remove one flavor of hb_vector_t.qsort() --- src/hb-vector.hh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/hb-vector.hh b/src/hb-vector.hh index 085523f84..a5fa4142b 100644 --- a/src/hb-vector.hh +++ b/src/hb-vector.hh @@ -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); }