Revert "[array] Add chop()"

This reverts commit 545fe9d9f0.

Breaks gcc 4.8 and MSVC all versions.

Will add hb_chop() that works on all iterators instead.
This commit is contained in:
Behdad Esfahbod 2019-08-30 09:40:40 -05:00
parent 28c8dcb53f
commit 7eafe94705
1 changed files with 0 additions and 14 deletions

View File

@ -183,20 +183,6 @@ struct hb_array_t : hb_iter_with_fallback_t<hb_array_t<Type>, Type&>
hb_array_t truncate (unsigned length) const { return sub_array (0, length); }
auto chop (unsigned n) const -> decltype
(
+ hb_range (0u, 0u, n)
| hb_map (hb_partial<1> (hb_add, *this))
| hb_map (hb_partial<2> (&hb_array_t::truncate, n))
)
{
return
+ hb_range (0u, length, n)
| hb_map (hb_partial<1> (hb_add, *this))
| hb_map (hb_partial<2> (&hb_array_t::truncate, n))
;
}
template <typename T,
unsigned P = sizeof (Type),
hb_enable_if (P == 1)>