From d3d39fce19f4035a3feb9a6730244e393be393dc Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Mon, 19 May 2008 13:29:07 +0000 Subject: [PATCH] more ipc code removal --- macosx/Controller.h | 2 -- macosx/Controller.m | 8 +++----- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/macosx/Controller.h b/macosx/Controller.h index 81e8b2e0f..69ed75e01 100644 --- a/macosx/Controller.h +++ b/macosx/Controller.h @@ -115,8 +115,6 @@ typedef enum NSMutableArray * fTempTorrentFiles; BOOL fSoundPlaying; - - BOOL fRemoteQuit; } - (void) openFiles: (NSArray *) filenames addType: (addType) type forcePath: (NSString *) path; diff --git a/macosx/Controller.m b/macosx/Controller.m index 54addc8a6..0898e6bca 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -227,8 +227,6 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi fSoundPlaying = NO; - fRemoteQuit = NO; - [GrowlApplicationBridge setGrowlDelegate: self]; [[UKKQueue sharedFileWatcher] setDelegate: self]; } @@ -502,7 +500,7 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi - (NSApplicationTerminateReply) applicationShouldTerminate: (NSApplication *) sender { - if (!fUpdateInProgress && !fRemoteQuit && [fDefaults boolForKey: @"CheckQuit"]) + if (!fUpdateInProgress && [fDefaults boolForKey: @"CheckQuit"]) { int active = 0, downloading = 0; Torrent * torrent; @@ -4048,7 +4046,7 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi [[NSWorkspace sharedWorkspace] selectFile: location inFileViewerRootedAtPath: nil]; } -- (void) ipcQuit +/*- (void) ipcQuit { fRemoteQuit = YES; [NSApp terminate: self]; @@ -4215,6 +4213,6 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi [self confirmRemoveTorrents: torrents deleteData: NO deleteTorrent: NO]; return YES; -} +}*/ @end