Skip to content

Commit 233b540

Browse files
committed
code cleanup
1 parent 54132c6 commit 233b540

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/_arraykit.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3804,7 +3804,6 @@ AK_nonzero_1d(PyArrayObject* array) {
38043804
return final;
38053805
}
38063806

3807-
38083807
static PyObject*
38093808
nonzero_1d(PyObject *Py_UNUSED(m), PyObject *a) {
38103809
AK_CHECK_NUMPY_ARRAY(a);
@@ -6251,14 +6250,12 @@ TriMap_register_unmatched_dst(TriMapObject *self) {
62516250
return NULL;
62526251
}
62536252
// derive indices for unmatched locations, call each with register_one
6254-
// PyObject* nonzero = PyArray_Nonzero(dst_unmatched);
62556253
PyArrayObject* indices = (PyArrayObject*)AK_nonzero_1d(dst_unmatched);
62566254
if (indices == NULL) {
62576255
Py_DECREF((PyObject*)dst_unmatched);
62586256
return NULL;
62596257
}
62606258
// borrow ref to array in 1-element tuple
6261-
// PyArrayObject *indices = (PyArrayObject*)PyTuple_GET_ITEM(nonzero, 0);
62626259
npy_int64 *index_data = (npy_int64 *)PyArray_DATA(indices);
62636260
npy_intp index_len = PyArray_SIZE(indices);
62646261

0 commit comments

Comments
 (0)