mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
Removed redundant variable.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25948 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d4da065a2d
commit
f17d86d3eb
3 changed files with 7 additions and 6 deletions
|
@ -1,3 +1,9 @@
|
|||
2008-01-14 09:37-EST Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Headers/AppKit/NSSegmentedCell.h
|
||||
* Source/NSSegmentedCell.m: Removed _previous_segment, since it was
|
||||
redundant.
|
||||
|
||||
2008-01-14 09:17-EST Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Headers/AppKit/NSSegmentedControl.h
|
||||
|
|
|
@ -56,7 +56,6 @@ typedef enum {
|
|||
unsigned int _recalcToolTips:1;
|
||||
unsigned int unused:24;
|
||||
} _segmentCellFlags;
|
||||
int _previous_selection;
|
||||
}
|
||||
|
||||
// Specifying number of segments...
|
||||
|
|
|
@ -259,7 +259,6 @@
|
|||
|
||||
_items = [[NSMutableArray alloc] initWithCapacity: 2];
|
||||
_selected_segment = -1;
|
||||
_previous_selection = -1;
|
||||
[self setAlignment: NSCenterTextAlignment];
|
||||
|
||||
return self;
|
||||
|
@ -273,7 +272,6 @@
|
|||
|
||||
_items = [[NSMutableArray alloc] initWithCapacity: 2];
|
||||
_selected_segment = -1;
|
||||
_previous_selection = -1;
|
||||
[self setAlignment: NSCenterTextAlignment];
|
||||
|
||||
return self;
|
||||
|
@ -339,8 +337,7 @@
|
|||
|
||||
if(_selected_segment != -1)
|
||||
{
|
||||
_previous_selection = _selected_segment;
|
||||
previous = [_items objectAtIndex: _previous_selection];
|
||||
previous = [_items objectAtIndex: _selected_segment];
|
||||
[previous setSelected: NO];
|
||||
}
|
||||
|
||||
|
@ -599,7 +596,6 @@
|
|||
ASSIGN(_items, [aDecoder decodeObjectForKey: @"NSSegmentImages"]);
|
||||
if ([aDecoder containsValueForKey: @"NSSelectedSegment"])
|
||||
_selected_segment = [aDecoder decodeIntForKey: @"NSSelectedSegment"];
|
||||
_previous_selection = -1;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue