Explorar o código

macosx/framework: Don't attempt to do anything at exit or at construction this is nasty for a Framework.

Pierre d'Herbemont %!s(int64=15) %!d(string=hai) anos
pai
achega
d98dc284b9
Modificáronse 2 ficheiros con 0 adicións e 27 borrados
  1. 0 4
      Headers/Public/VLCLibrary.h
  2. 0 23
      Sources/VLCLibrary.m

+ 0 - 4
Headers/Public/VLCLibrary.h

@@ -27,10 +27,6 @@
 #import "VLCMediaList.h"
 #import "VLCMedia.h"
 
-// FIXME: Hide from public header
-extern void * CreateSharedLibraryOnStartup( void ) __attribute__((constructor));
-extern void * DestroySharedLibraryAtExit( void ) __attribute__((destructor));
-
 @class VLCAudio;
 
 /**

+ 0 - 23
Sources/VLCLibrary.m

@@ -49,29 +49,6 @@ void __catch_exception( void * e, const char * function, const char * file, int
     }
 }
 
-void * CreateSharedLibraryOnStartup( void ) 
-{
-    NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-    
-    /* This library is not loaded for no reason, so let's create
-     * a VLCLibrary instance. */
-    [VLCLibrary sharedLibrary];
-    
-    [pool release];
-    
-    return NULL;
-}
-
-void * DestroySharedLibraryAtExit( void )
-{
-    /* Release the global object that may have been alloc-ed
-     * in -[VLCLibrary init] */
-    [sharedLibrary release];
-    sharedLibrary = nil;
-
-    return NULL;
-}
-
 @implementation VLCLibrary
 + (VLCLibrary *)sharedLibrary
 {