From 1a13d32452cfd2c325563c7c252ee7cea68b770a Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Fri, 7 Feb 2020 09:30:47 -0800 Subject: [PATCH] Get rid of join_structured_arrays --- manimlib/utils/iterables.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/manimlib/utils/iterables.py b/manimlib/utils/iterables.py index 385c0da3..29474f81 100644 --- a/manimlib/utils/iterables.py +++ b/manimlib/utils/iterables.py @@ -123,21 +123,6 @@ def remove_nones(sequence): return [x for x in sequence if x] -def join_structured_arrays(*arrays): - assert(len(arrays) > 0) - - result = np.zeros( - sum([len(arr) for arr in arrays]), - dtype=arrays[0].dtype - ) - lh = 0 - for array in arrays: - rh = lh + len(array) - result[lh:rh] = array - lh = rh - return result - - # Note this is redundant with it.chain