From 3b2a6c9df25385710382a8562d658497ce0c7cde Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Fri, 17 Oct 2014 02:57:47 +0200 Subject: [PATCH] (iOS) Get rid of dead code in 'applicationDidFinishLaunching' --- apple/iOS/platform.m | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/apple/iOS/platform.m b/apple/iOS/platform.m index 6a7343030c..79e82679c4 100644 --- a/apple/iOS/platform.m +++ b/apple/iOS/platform.m @@ -188,43 +188,6 @@ static void handle_touch_event(NSArray* touches) [self showPauseMenu:self]; [self.window makeKeyAndVisible]; -#if 0 - const char *paths; - - // Build system paths and test permissions - self.documentsDirectory = [NSHomeDirectory() stringByAppendingPathComponent:@"Documents"]; - fill_pathname_join(g_defaults.system_dir, self.documentsDirectory.UTF8String, ".RetroArch", sizeof(g_defaults.system_dir)); - fill_pathname_join(g_defaults.core_dir, NSBundle.mainBundle.bundlePath.UTF8String, "modules", sizeof(g_defaults.core_dir)); - - strlcpy(g_defaults.menu_config_dir, g_defaults.system_dir, sizeof(g_defaults.menu_config_dir)); - fill_pathname_join(g_defaults.config_path, g_defaults.menu_config_dir, "retroarch.cfg", sizeof(g_defaults.config_path)); - - strlcpy(g_defaults.sram_dir, g_defaults.system_dir, sizeof(g_defaults.sram_dir)); - strlcpy(g_defaults.savestate_dir, g_defaults.system_dir, sizeof(g_defaults.savestate_dir)); - - paths = (const char*)self.documentsDirectory.UTF8String; - path_mkdir(paths); - - if (access(paths, 0755) != 0) - { - char msg[256]; - snprintf(msg, sizeof(msg), "Failed to create or access base directory: %s", self.documentsDirectory.UTF8String); - apple_display_alert(msg, "Error"); - } - else - { - paths = g_defaults.system_dir; - path_mkdir(paths); - - if (access(paths, 0755) != 0) - { - char msg[256]; - snprintf(msg, sizeof(msg), "Failed to create or access system directory: %s", g_defaults.system_dir); - apple_display_alert(msg, "Error"); - } - } -#endif - [self pushViewController:[RAMainMenu new] animated:YES]; // Warn if there are no cores present