Skip to content

Commit 32a99c7

Browse files
Removed unused variables
1 parent a2a62dc commit 32a99c7

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

dpctl/tensor/_usmarray.pyx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ cdef class usm_ndarray:
138138
"""
139139
Provides a copy of Python object pointing to the same data
140140
"""
141-
cdef int item_size = self.get_itemsize()
142141
cdef Py_ssize_t offset_elems = self.get_offset()
143142
cdef usm_ndarray res = usm_ndarray.__new__(
144143
usm_ndarray, _make_int_tuple(self.nd_, self.shape_),
@@ -178,14 +177,12 @@ cdef class usm_ndarray:
178177
cdef Py_ssize_t _offset = offset
179178
cdef Py_ssize_t ary_min_displacement = 0
180179
cdef Py_ssize_t ary_max_displacement = 0
181-
cdef Py_ssize_t tmp = 0
182-
cdef char * data_ptr = NULL
183180

184181
self._reset()
185182
if (not isinstance(shape, (list, tuple))
186183
and not hasattr(shape, 'tolist')):
187184
try:
188-
tmp = <Py_ssize_t> shape
185+
<Py_ssize_t> shape
189186
shape = [shape, ]
190187
except Exception:
191188
raise TypeError("Argument shape must be a list or a tuple.")

0 commit comments

Comments
 (0)