mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 13:00:37 +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
591b0c4d54
commit
ba2911824a
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…
Add table
Add a link
Reference in a new issue