mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Remove uneeded ivars, release maps
This commit is contained in:
parent
01ca2cb6c2
commit
f1552faaee
2 changed files with 32 additions and 31 deletions
|
@ -45,7 +45,6 @@
|
|||
@class NSPasteboard;
|
||||
@class NSNib;
|
||||
@class NSMapTable;
|
||||
@class NSMutableArray;
|
||||
@class NSMutableDictionary;
|
||||
@class NSMutableSet;
|
||||
|
||||
|
|
|
@ -142,6 +142,35 @@ static NSString *placeholderItem = nil;
|
|||
return self;
|
||||
}
|
||||
|
||||
- (void) dealloc
|
||||
{
|
||||
//[[NSNotificationCenter defaultCenter] removeObserver: self];
|
||||
DESTROY (_content);
|
||||
|
||||
// FIXME: Not clear if we should destroy the top-level item "itemPrototype" loaded in the nib file.
|
||||
DESTROY (itemPrototype);
|
||||
|
||||
DESTROY (_backgroundColors);
|
||||
DESTROY (_selectionIndexes);
|
||||
DESTROY (_items);
|
||||
|
||||
// Managing items.
|
||||
DESTROY(_visibleItems);
|
||||
DESTROY(_indexPathsForVisibleItems);
|
||||
DESTROY(_visibleSupplementaryViews);
|
||||
DESTROY(_indexPathsForSupplementaryElementsOfKind);
|
||||
DESTROY(_itemsToAttributes);
|
||||
DESTROY(_itemsToIndexPaths);
|
||||
DESTROY(_indexPathsToItems);
|
||||
|
||||
// Registered nib/class
|
||||
DESTROY(_registeredNibs);
|
||||
DESTROY(_registeredClasses);
|
||||
|
||||
//DESTROY (_mouseDownEvent);
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
-(void) _initDefaults
|
||||
{
|
||||
_itemSize = NSMakeSize(0, 0);
|
||||
|
@ -220,33 +249,6 @@ static NSString *placeholderItem = nil;
|
|||
}
|
||||
}
|
||||
|
||||
- (void) dealloc
|
||||
{
|
||||
//[[NSNotificationCenter defaultCenter] removeObserver: self];
|
||||
|
||||
DESTROY (_content);
|
||||
|
||||
// FIXME: Not clear if we should destroy the top-level item "itemPrototype" loaded in the nib file.
|
||||
DESTROY (itemPrototype);
|
||||
|
||||
DESTROY (_backgroundColors);
|
||||
DESTROY (_selectionIndexes);
|
||||
DESTROY (_items);
|
||||
|
||||
// Managing items.
|
||||
DESTROY(_visibleItems);
|
||||
DESTROY(_indexPathsForVisibleItems);
|
||||
DESTROY(_visibleSupplementaryViews);
|
||||
DESTROY(_indexPathsForSupplementaryElementsOfKind);
|
||||
|
||||
// Registered nib/class
|
||||
DESTROY(_registeredNibs);
|
||||
DESTROY(_registeredClasses);
|
||||
|
||||
//DESTROY (_mouseDownEvent);
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
- (BOOL) isFlipped
|
||||
{
|
||||
return YES;
|
||||
|
@ -1495,7 +1497,7 @@ static NSString *placeholderItem = nil;
|
|||
{
|
||||
[self registerClass: itemClass
|
||||
forSupplementaryViewOfKind: GSNoSupplementaryElement
|
||||
withIdentifier: identifier];
|
||||
withIdentifier: identifier];
|
||||
}
|
||||
|
||||
- (void) registerNib: (NSNib *)nib
|
||||
|
@ -1503,12 +1505,12 @@ static NSString *placeholderItem = nil;
|
|||
{
|
||||
[self registerNib: nib
|
||||
forSupplementaryViewOfKind: GSNoSupplementaryElement
|
||||
withIdentifier: identifier];
|
||||
withIdentifier: identifier];
|
||||
}
|
||||
|
||||
- (void) registerClass: (Class)viewClass
|
||||
forSupplementaryViewOfKind: (NSCollectionViewSupplementaryElementKind)kind
|
||||
withIdentifier:(NSUserInterfaceItemIdentifier)identifier
|
||||
withIdentifier:(NSUserInterfaceItemIdentifier)identifier
|
||||
{
|
||||
NSMapTable *t = nil;
|
||||
|
||||
|
|
Loading…
Reference in a new issue