From 97650847944dba2572a570ae48d0fbc297837363 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Sun, 23 Jul 2006 14:50:36 +0000 Subject: [PATCH] Get rid of some warnings I added. --- macosx/Controller.h | 1 - macosx/Controller.m | 11 +---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/macosx/Controller.h b/macosx/Controller.h index 8bbf5468b..4e78f8d2e 100644 --- a/macosx/Controller.h +++ b/macosx/Controller.h @@ -178,7 +178,6 @@ - (void) toggleAdvancedBar: (id) sender; -- (void) setAutoSize: (NSNotification *) notification; - (void) setWindowSizeToFit; - (NSRect) windowFrameForAmount: (int) amount; diff --git a/macosx/Controller.m b/macosx/Controller.m index 50cc99fab..97fdfd81d 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -305,7 +305,7 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy [nc addObserver: self selector: @selector(autoImportChange:) name: @"AutoImportSettingChange" object: nil]; - [nc addObserver: self selector: @selector(setAutoSize:) + [nc addObserver: self selector: @selector(setWindowSizeToFit) name: @"AutoSizeSettingChange" object: nil]; //check to start another because of stopped torrent @@ -341,9 +341,6 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy [self applyFilter: nil]; - #warning repetitive - [self setAutoSize: nil]; - [fWindow makeKeyAndOrderFront: nil]; //load info for no torrents @@ -2122,12 +2119,6 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy return frame; } -#warning remove? -- (void) setAutoSize: (NSNotification *) notification -{ - [self setWindowSizeToFit]; -} - - (void) setWindowSizeToFit { if ([fDefaults boolForKey: @"AutoSize"])