diff --git a/ChangeLog b/ChangeLog index 7043c0552..4a0857625 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-06-21 Fred Kiefer + + * Source/NSIndexSet.m: (-indexGreaterThanOrEqualToIndex, + -indexGreaterThanIndex:) removed incorrect special case handling. + 2004-06-20 Richard Frith-Macdonald * Source/NSUserDefaults.m: ([initForUser:]) carry on and initialise diff --git a/Source/NSIndexSet.m b/Source/NSIndexSet.m index 26128707e..b2a67f4da 100644 --- a/Source/NSIndexSet.m +++ b/Source/NSIndexSet.m @@ -321,10 +321,6 @@ static unsigned posForIndex(GSIArray array, unsigned index) { return anIndex; } - if (++pos >= GSIArrayCount(_array)) - { - return NSNotFound; - } r = GSIArrayItemAtIndex(_array, pos).ext; return r.location; } @@ -352,10 +348,6 @@ static unsigned posForIndex(GSIArray array, unsigned index) { return r.location; } - if (++pos >= GSIArrayCount(_array)) - { - return NSNotFound; - } r = GSIArrayItemAtIndex(_array, pos).ext; return r.location; }