From b8ecdad75b831eec62fb02e76d80a45f7ec9aa58 Mon Sep 17 00:00:00 2001 From: Alan McIntyre Date: Mon, 21 Jul 2008 12:36:17 +0000 Subject: Removed unused private function _asarray1d. --- numpy/lib/function_base.py | 8 -------- 1 file changed, 8 deletions(-) (limited to 'numpy/lib') diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index 2204f1863..f0b941872 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -657,14 +657,6 @@ def select(condlist, choicelist, default=0): S = S*ones(asarray(pfac).shape, S.dtype) return choose(S, tuple(choicelist)) -def _asarray1d(arr, copy=False): - """Ensure 1D array for one array. - """ - if copy: - return asarray(arr).flatten() - else: - return asarray(arr).ravel() - def copy(a): """Return an array copy of the given object. """ -- cgit v1.2.1