]> git.sesse.net Git - vlc/commitdiff
macosx/framework: Don't attempt to do anything at exit or at construction this is...
authorPierre d'Herbemont <pdherbemont@free.fr>
Thu, 10 Dec 2009 20:20:59 +0000 (21:20 +0100)
committerPierre d'Herbemont <pdherbemont@free.fr>
Thu, 10 Dec 2009 22:02:23 +0000 (23:02 +0100)
projects/macosx/framework/Headers/Public/VLCLibrary.h
projects/macosx/framework/Sources/VLCLibrary.m

index b43d74cb1cda2876a07329007ce5578812d84148..620f6ae4e9b7c3db83019c75ca11fcaf5816b495 100644 (file)
 #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;
 
 /**
index 3bdb76d8c3df977e24e70383f1aaa8f39ee79538..cfa580b74f78f3cc71296ba9199d186d4b10c774 100644 (file)
@@ -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
 {