summaryrefslogtreecommitdiff
path: root/numpy/core/src/arraymethods.c
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core/src/arraymethods.c')
-rw-r--r--numpy/core/src/arraymethods.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/numpy/core/src/arraymethods.c b/numpy/core/src/arraymethods.c
index 2d4c82054..a118787c7 100644
--- a/numpy/core/src/arraymethods.c
+++ b/numpy/core/src/arraymethods.c
@@ -103,14 +103,7 @@ array_reshape(PyArrayObject *self, PyObject *args, PyObject *kwds)
goto fail;
}
}
-
- if (newshape.len == 1) {
- PyDimMem_FREE(newshape.ptr);
- return PyArray_Ravel(self, 0);
- }
-
ret = PyArray_Newshape(self, &newshape, order);
-
PyDimMem_FREE(newshape.ptr);
return ret;