From d69bc3798f7c5f5dd8fab167fe4802d5d37cf4d7 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Wed, 8 Aug 2007 14:35:40 +0000 Subject: [PATCH] get rid of some warnings --- macosx/Torrent.m | 1 - macosx/TorrentTableView.m | 9 ++++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/macosx/Torrent.m b/macosx/Torrent.m index 7f1748f47..4bbf6b869 100644 --- a/macosx/Torrent.m +++ b/macosx/Torrent.m @@ -1344,7 +1344,6 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80 return NO; } -#warning rename to match priorities - (NSSet *) filePrioritiesForIndexes: (NSIndexSet *) indexSet { BOOL low = NO, normal = NO, high = NO; diff --git a/macosx/TorrentTableView.m b/macosx/TorrentTableView.m index 164abb0de..b46e05a4f 100644 --- a/macosx/TorrentTableView.m +++ b/macosx/TorrentTableView.m @@ -357,9 +357,10 @@ NSRect rect; Torrent * torrent; NSImage * image; - + BOOL smallView = [fDefaults boolForKey: @"SmallView"]; + [super drawRect: r]; - + int i; for (i = 0; i < [fTorrents count]; i++) { @@ -393,9 +394,8 @@ [image compositeToPoint: NSMakePoint(rect.origin.x, NSMaxY(rect)) operation: NSCompositeSourceOver]; //action icon - if (![fDefaults boolForKey: @"SmallView"]) + if (!smallView) { - #warning make change rect = [self actionRectForRow: i]; image = NSPointInRect(fClickPoint, rect) ? fActionOnIcon : fActionOffIcon; [image compositeToPoint: NSMakePoint(rect.origin.x, NSMaxY(rect)) operation: NSCompositeSourceOver]; @@ -456,7 +456,6 @@ NSRect cellRect = [self frameOfCellAtColumn: [self columnWithIdentifier: @"Torrent"] row: row]; - #warning constant return NSMakeRect(cellRect.origin.x + PADDING + ([[[fTorrents objectAtIndex: row] iconFlipped] size].width - ACTION_BUTTON_WIDTH) * 0.5, cellRect.origin.y + ACTION_BUTTON_TO_TOP, ACTION_BUTTON_WIDTH, ACTION_BUTTON_HEIGHT);