summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattip <matti.picus@gmail.com>2023-01-03 11:00:42 +0200
committermattip <matti.picus@gmail.com>2023-01-03 11:02:20 +0200
commitaf52e197a16b136ea863a5f7e2e078404c30229b (patch)
tree296d84148f0f9498638d5b8013a0699b4819084e
parent1d4bef632205f1db9f8337198eb20e40ebefc859 (diff)
downloadnumpy-af52e197a16b136ea863a5f7e2e078404c30229b.tar.gz
MAINT: remove dead code path (from review)
-rw-r--r--numpy/core/src/umath/ufunc_object.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/numpy/core/src/umath/ufunc_object.c b/numpy/core/src/umath/ufunc_object.c
index 3f36aced4..77abeeb0f 100644
--- a/numpy/core/src/umath/ufunc_object.c
+++ b/numpy/core/src/umath/ufunc_object.c
@@ -5943,8 +5943,6 @@ new_array_op(PyArrayObject *op_array, char *data)
return (PyArrayObject *)r;
}
-int is_generic_wrapped_legacy_loop(PyArrayMethod_StridedLoop *strided_loop);
-
static int
ufunc_at__fast_iter(PyUFuncObject *ufunc, NPY_ARRAYMETHOD_FLAGS flags,
PyArrayMapIterObject *iter, PyArrayIterObject *iter2,
@@ -5958,7 +5956,6 @@ ufunc_at__fast_iter(PyUFuncObject *ufunc, NPY_ARRAYMETHOD_FLAGS flags,
int buffersize;
int errormask = 0;
int res = 0;
- char * err_msg = NULL;
NPY_BEGIN_THREADS_DEF;
if (_get_bufsize_errmask(NULL, ufunc->name, &buffersize, &errormask) < 0) {
@@ -6011,9 +6008,6 @@ ufunc_at__fast_iter(PyUFuncObject *ufunc, NPY_ARRAYMETHOD_FLAGS flags,
NPY_END_THREADS;
- if (res != 0 && err_msg) {
- PyErr_SetString(PyExc_ValueError, err_msg);
- }
if (res == 0 && !(flags & NPY_METH_NO_FLOATINGPOINT_ERRORS)) {
/* NOTE: We could check float errors even when `res < 0` */
res = _check_ufunc_fperr(errormask, NULL, "at");