From 141404356a1081d12e398acb439970c776dbcb5b Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Sat, 18 Aug 2007 16:55:01 +0000 Subject: [PATCH] remove some warnings --- macosx/InfoWindowController.m | 1 - macosx/TorrentTableView.m | 9 +-------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/macosx/InfoWindowController.m b/macosx/InfoWindowController.m index 42bf723a3..58ae27a30 100644 --- a/macosx/InfoWindowController.m +++ b/macosx/InfoWindowController.m @@ -82,7 +82,6 @@ //window location and size NSPanel * window = (NSPanel *)[self window]; - #warning get working again [window setFrameAutosaveName: @"InspectorWindowFrame"]; [window setFrameUsingName: @"InspectorWindowFrame"]; diff --git a/macosx/TorrentTableView.m b/macosx/TorrentTableView.m index 1ff82d016..90eaaa3aa 100644 --- a/macosx/TorrentTableView.m +++ b/macosx/TorrentTableView.m @@ -378,7 +378,6 @@ item = [menu itemWithTag: ACTION_MENU_GLOBAL_TAG]; [item setState: mode == NSMixedState ? NSOnState : NSOffState]; } - #warning better way? else if ([menu supermenu]) //assume the menu is part of the file list { NSMenu * supermenu = [menu supermenu]; @@ -440,13 +439,7 @@ - (void) checkFile: (id) sender { - #warning get working - NSIndexSet * indexSet; - if ([[NSApp currentEvent] modifierFlags] & NSAlternateKeyMask) - indexSet = [NSIndexSet indexSetWithIndexesInRange: NSMakeRange(0, [fMenuTorrent fileCount])]; - else - indexSet = [[sender representedObject] objectForKey: @"Indexes"]; - + NSIndexSet * indexSet = [[sender representedObject] objectForKey: @"Indexes"]; [fMenuTorrent setFileCheckState: [sender state] != NSOnState ? NSOnState : NSOffState forIndexes: indexSet]; [[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateStats" object: nil];