mirror of https://github.com/python/cpython
Remove a redundant check from list_slice() and list_ass_slice().
Noted by Greg Stein.
This commit is contained in:
parent
d832f9e425
commit
2ccaf6f2f9
|
@ -326,8 +326,6 @@ list_slice(a, ilow, ihigh)
|
|||
ilow = 0;
|
||||
else if (ilow > a->ob_size)
|
||||
ilow = a->ob_size;
|
||||
if (ihigh < 0)
|
||||
ihigh = 0;
|
||||
if (ihigh < ilow)
|
||||
ihigh = ilow;
|
||||
else if (ihigh > a->ob_size)
|
||||
|
@ -452,8 +450,6 @@ list_ass_slice(a, ilow, ihigh, v)
|
|||
ilow = 0;
|
||||
else if (ilow > a->ob_size)
|
||||
ilow = a->ob_size;
|
||||
if (ihigh < 0)
|
||||
ihigh = 0;
|
||||
if (ihigh < ilow)
|
||||
ihigh = ilow;
|
||||
else if (ihigh > a->ob_size)
|
||||
|
|
Loading…
Reference in New Issue