Removed dead assignments and unused variable attrs.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31340 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rmottola 2010-09-12 23:25:59 +00:00
parent e9bcdfd548
commit 6e69e9a8e8
2 changed files with 6 additions and 3 deletions

View file

@ -1,3 +1,7 @@
2010-09-12 Riccardo Mottola
* Source/GSAttributedString: Removed dead assignments and unused variable attrs.
2010-09-12 Richard Frith-Macdonald <rfm@gnu.org>
* Source/GSConcreteValueTemplate.m:

View file

@ -757,7 +757,6 @@ SANITY();
unsigned arrayIndex = 0;
unsigned arraySize;
NSRange effectiveRange = NSMakeRange(0, NSNotFound);
NSDictionary *attrs;
GSAttrInfo *info;
int moveLocations;
unsigned start;
@ -800,7 +799,7 @@ SANITY();
start = range.location - 1;
else
start = range.location;
attrs = _attributesAtIndexEffectiveRange(start, &effectiveRange,
_attributesAtIndexEffectiveRange(start, &effectiveRange,
tmpLength, _infoArray, &arrayIndex);
moveLocations = [aString length] - range.length;
@ -851,7 +850,7 @@ SANITY();
*/
if ((moveLocations + range.length) == 0)
{
attrs = _attributesAtIndexEffectiveRange(start, &effectiveRange,
_attributesAtIndexEffectiveRange(start, &effectiveRange,
tmpLength, _infoArray, &arrayIndex);
arrayIndex++;