]> git.sesse.net Git - vlc/commitdiff
macosx: o_sendport not used, remove.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 5 Jul 2008 12:50:35 +0000 (14:50 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 5 Jul 2008 13:50:00 +0000 (15:50 +0200)
modules/gui/macosx/intf.h
modules/gui/macosx/intf.m

index ac26f9d99b149648e7512eb7bacb2699c49aacf8..6fe248997e46d6b52e022b3151efd4db36ea93fe 100644 (file)
@@ -66,7 +66,6 @@ unsigned int CocoaKeyToVLC( unichar i_key );
 struct intf_sys_t
 {
     NSAutoreleasePool * o_pool;
-    NSPort * o_sendport;
 
     /* the current input */
     input_thread_t * p_input;
index 792cb2a3ee7322b67f7d3962eafb85154cea69ab..912dcb6a2a54edf84c4947d4b5ba35cf438da381 100644 (file)
@@ -105,7 +105,6 @@ int OpenIntf ( vlc_object_t *p_this )
 
     p_intf->p_sys->o_pool = [[NSAutoreleasePool alloc] init];
 
-    p_intf->p_sys->o_sendport = [[NSPort port] retain];
     p_intf->p_sys->p_sub = msg_Subscribe( p_intf );
     p_intf->pf_run = Run;
     p_intf->b_should_run_on_first_thread = true;
@@ -124,7 +123,6 @@ void CloseIntf ( vlc_object_t *p_this )
     
     msg_Unsubscribe( p_intf, p_intf->p_sys->p_sub );
 
-    [p_intf->p_sys->o_sendport release];
     [p_intf->p_sys->o_pool release];
 
     free( p_intf->p_sys );
@@ -706,11 +704,6 @@ static VLCMain *_o_sharedMainInstance = nil;
     o_msg_lock = [[NSLock alloc] init];
     o_msg_arr = [[NSMutableArray arrayWithCapacity: 200] retain];
 
-    [p_intf->p_sys->o_sendport setDelegate: self];
-    [[NSRunLoop currentRunLoop]
-        addPort: p_intf->p_sys->o_sendport
-        forMode: NSDefaultRunLoopMode];
-
     /* FIXME: don't poll */
     interfaceTimer = [[NSTimer scheduledTimerWithTimeInterval: 0.5
                                      target: self selector: @selector(manageIntf:)