From 7eafe94705bb818aac71fbc142158a22da622d19 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 30 Aug 2019 09:40:40 -0500 Subject: [PATCH] Revert "[array] Add chop()" This reverts commit 545fe9d9f0870568c40c17591f3f224c228feba6. Breaks gcc 4.8 and MSVC all versions. Will add hb_chop() that works on all iterators instead. --- src/hb-array.hh | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/hb-array.hh b/src/hb-array.hh index 40d3b7269..6efaf5fa5 100644 --- a/src/hb-array.hh +++ b/src/hb-array.hh @@ -183,20 +183,6 @@ struct hb_array_t : hb_iter_with_fallback_t, 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