summaryrefslogtreecommitdiff
path: root/numpy/core/src/common/npy_partition.h.src
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core/src/common/npy_partition.h.src')
-rw-r--r--numpy/core/src/common/npy_partition.h.src3
1 files changed, 0 insertions, 3 deletions
diff --git a/numpy/core/src/common/npy_partition.h.src b/numpy/core/src/common/npy_partition.h.src
index a22cf911c..97dc2536b 100644
--- a/numpy/core/src/common/npy_partition.h.src
+++ b/numpy/core/src/common/npy_partition.h.src
@@ -113,9 +113,6 @@ get_argpartition_func(int type, NPY_SELECTKIND which)
npy_intp i;
npy_intp ntypes = ARRAY_SIZE(_part_map);
- if (which >= NPY_NSELECTS) {
- return NULL;
- }
for (i = 0; i < ntypes; i++) {
if (type == _part_map[i].typenum) {
return _part_map[i].argpart[which];