Remove some tests that are always true (NSRange.length > 0 - NSUIntegers are always > 0).

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32348 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Chisnall 2011-02-24 13:21:37 +00:00
parent cf727674d1
commit 12fd784151

View file

@ -2755,7 +2755,7 @@ no_soft_invalidation:
id tmpAttrValue;
NSRange tmpRange;
if (range.location < 0 || NSMaxRange(range) > [_textStorage length])
if (NSMaxRange(range) > [_textStorage length])
{
[NSException raise: NSRangeException
format: @"RangeError in method -temporaryAttribute:atCharacterIndex:longestEffectiveRange:inRange: in class NSLayoutManager"];
@ -2815,7 +2815,7 @@ no_soft_invalidation:
NSDictionary *attrDictionary, *tmpDictionary;
NSRange tmpRange;
if (range.location < 0 || NSMaxRange(range) > [_textStorage length])
if (NSMaxRange(range) > [_textStorage length])
{
[NSException raise: NSRangeException
format: @"RangeError in method -temporaryAttributesAtCharacterIndex:longestEffectiveRange:inRange: in class NSLayoutManager"];