File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,6 @@ cdef class usm_ndarray:
138
138
"""
139
139
Provides a copy of Python object pointing to the same data
140
140
"""
141
- cdef int item_size = self .get_itemsize()
142
141
cdef Py_ssize_t offset_elems = self .get_offset()
143
142
cdef usm_ndarray res = usm_ndarray.__new__ (
144
143
usm_ndarray, _make_int_tuple(self .nd_, self .shape_),
@@ -178,14 +177,12 @@ cdef class usm_ndarray:
178
177
cdef Py_ssize_t _offset = offset
179
178
cdef Py_ssize_t ary_min_displacement = 0
180
179
cdef Py_ssize_t ary_max_displacement = 0
181
- cdef Py_ssize_t tmp = 0
182
- cdef char * data_ptr = NULL
183
180
184
181
self ._reset()
185
182
if (not isinstance (shape, (list , tuple ))
186
183
and not hasattr (shape, ' tolist' )):
187
184
try :
188
- tmp = < Py_ssize_t> shape
185
+ < Py_ssize_t> shape
189
186
shape = [shape, ]
190
187
except Exception :
191
188
raise TypeError (" Argument shape must be a list or a tuple." )
You can’t perform that action at this time.
0 commit comments