[vector] Simplify shift_down_vector()

Compiler is smarter than I am.
This commit is contained in:
Behdad Esfahbod 2022-11-18 17:04:34 -07:00
parent 1dd9396c7a
commit 69b41f92ec
1 changed files with 0 additions and 11 deletions

View File

@ -300,17 +300,6 @@ struct hb_vector_t
}
}
template <typename T = Type,
hb_enable_if (hb_is_trivially_copy_assignable(T))>
void
shift_down_vector (unsigned i)
{
memmove (static_cast<void *> (&arrayZ[i - 1]),
static_cast<void *> (&arrayZ[i]),
(length - i) * sizeof (Type));
}
template <typename T = Type,
hb_enable_if (!hb_is_trivially_copy_assignable(T))>
void
shift_down_vector (unsigned i)
{