diff options
| author | Gagandeep Singh <gdp.1807@gmail.com> | 2021-11-10 11:48:06 +0530 |
|---|---|---|
| committer | Gagandeep Singh <gdp.1807@gmail.com> | 2021-11-10 11:48:06 +0530 |
| commit | 7658ad93ba845fd1e7cd6ef81f266b5d18fd565d (patch) | |
| tree | 63a127c97126abb4a5f1a01889cf54515b4cf016 /numpy | |
| parent | 8b939c9e9a4264a4d3b10fcecbfd5ad21ef9901d (diff) | |
| download | numpy-7658ad93ba845fd1e7cd6ef81f266b5d18fd565d.tar.gz | |
Removed dead code
Diffstat (limited to 'numpy')
| -rw-r--r-- | numpy/core/src/multiarray/ctors.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/numpy/core/src/multiarray/ctors.c b/numpy/core/src/multiarray/ctors.c index 1ff26a311..2170a9a99 100644 --- a/numpy/core/src/multiarray/ctors.c +++ b/numpy/core/src/multiarray/ctors.c @@ -1872,17 +1872,7 @@ PyArray_CheckFromAny(PyObject *op, PyArray_Descr *descr, int min_depth, if ((requires & NPY_ARRAY_ELEMENTSTRIDES) && !PyArray_ElementStrides(obj)) { - // Testing if this code can be ever hit by existing tests - PyErr_SetString(PyExc_RuntimeError, "Not Implemented"); - // PyObject *ret; - // if( requires & NPY_ARRAY_ENSURENOCOPY ) { - // PyErr_SetString(PyExc_ValueError, - // "Unable to avoid copy while creating a new array."); - // return NULL; - // } - // ret = PyArray_NewCopy((PyArrayObject *)obj, NPY_ANYORDER); - // Py_DECREF(obj); - // obj = ret; + PyErr_SetString(PyExc_RuntimeError, "Not Implemented."); } return obj; } |
