mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
Remove dead code and improve testing
This commit is contained in:
parent
3edc201239
commit
14c2d9402d
4 changed files with 108 additions and 14 deletions
|
@ -713,19 +713,16 @@ SANITY();
|
|||
afterRangeLoc, &effectiveRange, tmpLength, _infoArray, &arrayIndex);
|
||||
if (attrs == attributes)
|
||||
{
|
||||
/*
|
||||
* The located range has the same attributes as us - so we can
|
||||
/* The located range has the same attributes as us - so we can
|
||||
* extend our range to include it.
|
||||
*/
|
||||
if (effectiveRange.location < beginRangeLoc)
|
||||
{
|
||||
range.length += beginRangeLoc - effectiveRange.location;
|
||||
range.location = effectiveRange.location;
|
||||
beginRangeLoc = range.location;
|
||||
beginRangeLoc = effectiveRange.location;
|
||||
}
|
||||
if (NSMaxRange(effectiveRange) > afterRangeLoc)
|
||||
{
|
||||
range.length = NSMaxRange(effectiveRange) - range.location;
|
||||
afterRangeLoc = NSMaxRange(effectiveRange);
|
||||
}
|
||||
}
|
||||
else if (effectiveRange.location > beginRangeLoc)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue