Eliminate unnecessary variable

This commit is contained in:
Raymond Hettinger 2015-09-22 01:20:36 -07:00
parent d3d2b2c50c
commit 7a237230d1

View File

@ -804,10 +804,9 @@ deque_reverse(dequeobject *deque, PyObject *unused)
Py_ssize_t leftindex = deque->leftindex;
Py_ssize_t rightindex = deque->rightindex;
Py_ssize_t n = Py_SIZE(deque) >> 1;
Py_ssize_t i;
PyObject *tmp;
for (i=0 ; i<n ; i++) {
while (n-- > 0) {
/* Validate that pointers haven't met in the middle */
assert(leftblock != rightblock || leftindex < rightindex);
CHECK_NOT_END(leftblock);