From 69b41f92ec97e3c6822541a96daea66258eba637 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 18 Nov 2022 17:04:34 -0700 Subject: [PATCH] [vector] Simplify shift_down_vector() Compiler is smarter than I am. --- src/hb-vector.hh | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/hb-vector.hh b/src/hb-vector.hh index 8f965c80a..fb6362ab3 100644 --- a/src/hb-vector.hh +++ b/src/hb-vector.hh @@ -300,17 +300,6 @@ struct hb_vector_t } } - template - void - shift_down_vector (unsigned i) - { - memmove (static_cast (&arrayZ[i - 1]), - static_cast (&arrayZ[i]), - (length - i) * sizeof (Type)); - } - template void shift_down_vector (unsigned i) {