From 0ac2bf232168f4ed5a9b9793aa5d7ab339748bc4 Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Thu, 18 Aug 2016 09:18:40 -0400 Subject: [PATCH] remove dead code --- Image Opener/Image_OpenerAppDelegate.h | 7 +--- Image Opener/Image_OpenerAppDelegate.m | 50 +------------------------- 2 files changed, 2 insertions(+), 55 deletions(-) diff --git a/Image Opener/Image_OpenerAppDelegate.h b/Image Opener/Image_OpenerAppDelegate.h index 53e839d..ccdb0a0 100644 --- a/Image Opener/Image_OpenerAppDelegate.h +++ b/Image Opener/Image_OpenerAppDelegate.h @@ -9,14 +9,9 @@ #import @interface Image_OpenerAppDelegate : NSObject { -@private - NSWindow *_window; + } -@property (assign) IBOutlet NSWindow *window; - - -//-(IBAction)openDocument:(id)sender; @end diff --git a/Image Opener/Image_OpenerAppDelegate.m b/Image Opener/Image_OpenerAppDelegate.m index 569e847..07716f6 100644 --- a/Image Opener/Image_OpenerAppDelegate.m +++ b/Image Opener/Image_OpenerAppDelegate.m @@ -7,12 +7,9 @@ // #import "Image_OpenerAppDelegate.h" -#import "WindowController.h" -#import "IODocumentController.h" @implementation Image_OpenerAppDelegate -@synthesize window = _window; - (void)applicationDidFinishLaunching:(NSNotification *)aNotification { @@ -23,17 +20,9 @@ -(void)applicationWillFinishLaunching:(NSNotification *)notification { - // initialize the shared document controller. - //[[IODocumentController alloc] init]; } -#if 0 -- (BOOL)application:(NSApplication *)theApplication openFile:(NSString *)filename -{ - [WindowController controllerWithFilePath: filename]; - return YES; -} -#endif + -(BOOL)applicationShouldOpenUntitledFile:(NSApplication *)sender { return NO; @@ -43,42 +32,5 @@ return NO; } -#if 0 --(IBAction)openDocument:(id)sender -{ - NSOpenPanel *panel; - - panel = [NSOpenPanel openPanel]; - - [panel setCanChooseFiles: YES]; - [panel setCanCreateDirectories: NO]; - [panel setResolvesAliases: YES]; - [panel setAllowsMultipleSelection: NO]; - [panel setExtensionHidden: NO]; - - - [panel beginWithCompletionHandler: ^(NSInteger result){ - - if (result == 1) - { - NSURL *url = [[panel URLs] lastObject]; - NSString *path = [url isFileURL] ? [url path] : nil; - - //NSLog(@"%d %@", (int)result, path); - - if (path) - { - - [WindowController controllerWithFilePath: path]; - - [[NSDocumentController sharedDocumentController] noteNewRecentDocumentURL: url]; - } - - } - }]; - - -} -#endif @end