From 1dd9396c7a4c24fe9d578551fab735bdd699e52a Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 18 Nov 2022 17:01:14 -0700 Subject: [PATCH] [vector] Optimize grow_vector() for size Again, compiler is smarter than I am. --- src/hb-vector.hh | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/hb-vector.hh b/src/hb-vector.hh index ed4481917..8f965c80a 100644 --- a/src/hb-vector.hh +++ b/src/hb-vector.hh @@ -242,16 +242,6 @@ struct hb_vector_t return new_array; } - template - void - grow_vector (unsigned size) - { - memset (arrayZ + length, 0, (size - length) * sizeof (*arrayZ)); - length = size; - } - template void grow_vector (unsigned size) {