[vlc-devel] commit: macosx: o_sendport not used, remove. (Pierre d'Herbemont )

git version control git at videolan.org
Sat Jul 5 15:47:48 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sat Jul  5 14:50:35 2008 +0200| [b94083f55404f83a91bba60913e4db6c3e32f9c0]

macosx: o_sendport not used, remove.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b94083f55404f83a91bba60913e4db6c3e32f9c0
---

 modules/gui/macosx/intf.h |    1 -
 modules/gui/macosx/intf.m |    7 -------
 2 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/modules/gui/macosx/intf.h b/modules/gui/macosx/intf.h
index ac26f9d..6fe2489 100644
--- a/modules/gui/macosx/intf.h
+++ b/modules/gui/macosx/intf.h
@@ -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;
diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index 792cb2a..912dcb6 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -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:)




More information about the vlc-devel mailing list