diff --git a/Makefile b/Makefile index 24ea6688eb..6d75e26aef 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,6 @@ DEFINES = -DHAVE_CONFIG_H ifneq ($(findstring Darwin,$(shell uname -a)),) OSX := 1 LIBS += -framework AppKit -lSDLmain - OBJ += osx-glue.o else OSX := 0 endif diff --git a/osx-glue.m b/osx-glue.m deleted file mode 100644 index d2f470db13..0000000000 --- a/osx-glue.m +++ /dev/null @@ -1,12 +0,0 @@ -#import -static NSAutoreleasePool * pool; -void init_ns_pool() -{ - pool = [[NSAutoreleasePool alloc] init]; -} - -void deinit_ns_pool() -{ - [pool release]; -} - diff --git a/ssnes.c b/ssnes.c index 82c0a47c6e..6fd3cec84e 100644 --- a/ssnes.c +++ b/ssnes.c @@ -37,9 +37,6 @@ #ifdef __APPLE__ #include "SDL.h" -void NSApplicationLoad(void); -void init_ns_pool(void); -void deinit_ns_pool(void); #endif struct global g_extern = { @@ -952,11 +949,6 @@ static void do_state_checks(void) int main(int argc, char *argv[]) { -#ifdef __APPLE__ // Very unix-y indeed... - NSApplicationLoad(); - init_ns_pool(); -#endif - parse_input(argc, argv); parse_config(); init_dlsym(); @@ -1027,10 +1019,6 @@ int main(int argc, char *argv[]) uninit_drivers(); uninit_dlsym(); -#ifdef __APPLE__ - deinit_ns_pool(); -#endif - return 0; error: @@ -1039,9 +1027,6 @@ error: uninit_drivers(); uninit_dlsym(); -#ifdef __APPLE__ - deinit_ns_pool(); -#endif return 1; }