@@ -3,10 +3,8 @@ import numpy as np
3
3
4
4
cimport numpy as cnp
5
5
from numpy cimport (
6
- float32_t,
7
6
float64_t,
8
7
int8_t,
9
- int16_t,
10
8
int32_t,
11
9
int64_t,
12
10
ndarray,
@@ -127,7 +125,7 @@ cdef class IntIndex(SparseIndex):
127
125
128
126
cpdef IntIndex intersect(self , SparseIndex y_):
129
127
cdef:
130
- Py_ssize_t out_length, xi, yi = 0 , result_indexer = 0
128
+ Py_ssize_t xi, yi = 0 , result_indexer = 0
131
129
int32_t xind
132
130
ndarray[int32_t, ndim= 1 ] xindices, yindices, new_indices
133
131
IntIndex y
@@ -205,7 +203,7 @@ cdef class IntIndex(SparseIndex):
205
203
Vectorized lookup, returns ndarray[int32_t]
206
204
"""
207
205
cdef:
208
- Py_ssize_t n, i, ind_val
206
+ Py_ssize_t n
209
207
ndarray[int32_t, ndim= 1 ] inds
210
208
ndarray[uint8_t, ndim= 1 , cast= True ] mask
211
209
ndarray[int32_t, ndim= 1 ] masked
@@ -232,7 +230,7 @@ cdef class IntIndex(SparseIndex):
232
230
233
231
cpdef get_blocks(ndarray[int32_t, ndim= 1 ] indices):
234
232
cdef:
235
- Py_ssize_t init_len, i, npoints, result_indexer = 0
233
+ Py_ssize_t i, npoints, result_indexer = 0
236
234
int32_t block, length = 1 , cur, prev
237
235
ndarray[int32_t, ndim= 1 ] locs, lens
238
236
@@ -606,7 +604,7 @@ cdef class BlockUnion(BlockMerge):
606
604
cdef:
607
605
ndarray[int32_t, ndim= 1 ] xstart, xend, ystart
608
606
ndarray[int32_t, ndim= 1 ] yend, out_bloc, out_blen
609
- int32_t nstart, nend, diff
607
+ int32_t nstart, nend
610
608
Py_ssize_t max_len, result_indexer = 0
611
609
612
610
xstart = self .xstart
@@ -659,7 +657,7 @@ cdef class BlockUnion(BlockMerge):
659
657
"""
660
658
cdef:
661
659
ndarray[int32_t, ndim= 1 ] xstart, xend, ystart, yend
662
- int32_t xi, yi, xnblocks, ynblocks, nend
660
+ int32_t xi, yi, ynblocks, nend
663
661
664
662
if mode != 0 and mode != 1 :
665
663
raise Exception (' Mode must be 0 or 1' )
0 commit comments