Skip to content

Commit

Permalink
remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
mrocklin committed Apr 27, 2017
1 parent 3578950 commit 275d2a0
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions dask/array/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -3398,22 +3398,6 @@ def transposelist(arrays, axes, extradims=0):
return reshapelist(newshape, result)


def to_numpy_array(x):
""" Convert object to numpy array
Supports both the __array__ protocol and the todense() method often used by
sparse arrays
"""
if type(x) is np.ndarray:
return x
elif hasattr(x, '__array__'):
return np.asarray(x)
elif hasattr(x, 'todense'):
return to_numpy_array(x.todense())
else:
return x # pass through


def concatenate3(arrays):
""" Recursive np.concatenate
Expand Down

0 comments on commit 275d2a0

Please sign in to comment.