From 46485124eacb07186e866799f952f27255e801c6 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 24 Feb 2025 21:04:34 -0700 Subject: [PATCH] [vector] Simplify a method --- src/hb-vector.hh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/hb-vector.hh b/src/hb-vector.hh index f8640fd95..8748f8d44 100644 --- a/src/hb-vector.hh +++ b/src/hb-vector.hh @@ -55,10 +55,7 @@ struct hb_vector_t hb_requires (hb_is_iterable (Iterable))> hb_vector_t (const Iterable &o) : hb_vector_t () { - auto iter = hb_iter (o); - if (iter.is_random_access_iterator || iter.has_fast_len) - alloc (hb_len (iter), true); - hb_copy (iter, *this); + extend (o); } template