mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 22:37:39 +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
|
@ -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…
Add table
Add a link
Reference in a new issue