remove unneeded group row code

This commit is contained in:
Mitchell Livingston 2007-11-04 16:19:22 +00:00
parent 25a4d11db4
commit 15b9b0feb0
2 changed files with 2 additions and 10 deletions

View File

@ -25,7 +25,6 @@
#import "FileOutlineView.h"
#import "FileNameCell.h"
#import "FilePriorityCell.h"
#import "NSApplicationAdditions.h"
#import "Torrent.h"
@implementation FileOutlineView
@ -115,12 +114,11 @@
return fHoverRow;
}
#warning remove unneeded code
- (void) drawRow: (int) row clipRect: (NSRect) clipRect
{
NSDictionary * item = [self itemAtRow: row];
if (![self isRowSelected: row] && (![NSApp isOnLeopardOrBetter] || ![[item objectForKey: @"IsFolder"] boolValue]))
if (![self isRowSelected: row])
{
NSDictionary * item = [self itemAtRow: row];
NSIndexSet * indexes = [item objectForKey: @"Indexes"];
if ([fTorrent checkForFiles: indexes] != NSOffState)

View File

@ -955,12 +955,6 @@ typedef enum
return nil;
}
#warning should keep?
- (BOOL) outlineView: (NSOutlineView *) outlineView isGroupItem: (id) item
{
return /*[[item objectForKey: @"IsFolder"] boolValue]*/NO;
}
- (float) outlineView: (NSOutlineView *) outlineView heightOfRowByItem: (id) item
{
if ([[item objectForKey: @"IsFolder"] boolValue])