mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
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:
parent
cf727674d1
commit
12fd784151
1 changed files with 2 additions and 2 deletions
|
@ -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"];
|
||||
|
|
Loading…
Reference in a new issue