From fd934eeaffc265ad65c7228fea36a7bce255e7fa Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Thu, 17 Sep 2009 01:15:00 +0000 Subject: [PATCH] remove a warning --- macosx/InfoWindowController.m | 3 +-- macosx/Torrent.m | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/macosx/InfoWindowController.m b/macosx/InfoWindowController.m index 1b78b332e..60547d7ff 100644 --- a/macosx/InfoWindowController.m +++ b/macosx/InfoWindowController.m @@ -1783,8 +1783,6 @@ typedef enum return; } - Torrent * torrent = [fTorrents objectAtIndex: 0]; - if ([[NSUserDefaults standardUserDefaults] boolForKey: @"WarningRemoveTrackers"]) { NSAlert * alert = [[NSAlert alloc] init]; @@ -1819,6 +1817,7 @@ typedef enum [fTrackers removeObjectsAtIndexes: indexes]; + Torrent * torrent = [fTorrents objectAtIndex: 0]; [torrent updateAllTrackersForRemove: fTrackers]; [fTrackerTable deselectAll: self]; diff --git a/macosx/Torrent.m b/macosx/Torrent.m index 48e7eaefd..36fb59ddc 100644 --- a/macosx/Torrent.m +++ b/macosx/Torrent.m @@ -779,7 +779,6 @@ int trashDataFile(const char * filename) return YES; } -#warning needed? - (void) updateAllTrackersForRemove: (NSMutableArray *) trackers { [self updateAllTrackers: trackers];