Remove a redundant check from list_slice() and list_ass_slice().

Noted by Greg Stein.
This commit is contained in:
Guido van Rossum 1998-10-07 13:24:13 +00:00
parent d832f9e425
commit 2ccaf6f2f9
1 changed files with 0 additions and 4 deletions

View File

@ -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)