get rid of an unnecessary method

This commit is contained in:
Mitchell Livingston 2008-02-19 15:21:19 +00:00
parent 8896efb400
commit 806fd71d52
1 changed files with 14 additions and 17 deletions

View File

@ -59,6 +59,20 @@
{
fDefaults = [NSUserDefaults standardUserDefaults];
if (![NSApp isOnLeopardOrBetter])
{
//remove all unnecessary columns
int i;
for (i = [[self tableColumns] count]-1; i >= 0; i--)
{
NSTableColumn * column = [[self tableColumns] objectAtIndex: i];
if (![[column identifier] isEqualToString: @"Group"])
[self removeTableColumn: column];
}
[self sizeLastColumnToFit];
}
fTorrentCell = [[TorrentCell alloc] init];
if (![NSApp isOnLeopardOrBetter])
[[self tableColumnWithIdentifier: @"Group"] setDataCell: fTorrentCell];
@ -82,23 +96,6 @@
return self;
}
- (void) awakeFromNib
{
if (![NSApp isOnLeopardOrBetter])
{
//remove all unnecessary columns
int i;
for (i = [[self tableColumns] count]-1; i >= 0; i--)
{
NSTableColumn * column = [[self tableColumns] objectAtIndex: i];
if (![[column identifier] isEqualToString: @"Group"])
[self removeTableColumn: column];
}
[self sizeLastColumnToFit];
}
}
- (void) dealloc
{
[fCollapsedGroups release];