]> git.sesse.net Git - vlc/commitdiff
Mac OS X: Remove dead code. Make sure terminate: calls its super.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 3 Mar 2007 15:54:16 +0000 (15:54 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 3 Mar 2007 15:54:16 +0000 (15:54 +0000)
src/interface/interface.c

index cecf77531ea50a8916c8a8dac2c823f21eea05cc..3948b903ee3a900c83308928c8924f1f9739d3ef 100644 (file)
@@ -467,26 +467,10 @@ static int AddIntfCallback( vlc_object_t *p_this, char const *psz_cmd,
     o_libvlc = p_libvlc;
 }
 
-- (void)stop: (id)sender
-{
-    NSEvent *o_event;
-    NSAutoreleasePool *o_pool;
-    [super stop:sender];
-
-    o_pool = [[NSAutoreleasePool alloc] init];
-    /* send a dummy event to break out of the event loop */
-    o_event = [NSEvent mouseEventWithType: NSLeftMouseDown
-                location: NSMakePoint( 1, 1 ) modifierFlags: 0
-                timestamp: 1 windowNumber: [[NSApp mainWindow] windowNumber]
-                context: [NSGraphicsContext currentContext] eventNumber: 1
-                clickCount: 1 pressure: 0.0];
-    [NSApp postEvent: o_event atStart: YES];
-    [o_pool release];
-}
-
 - (void)terminate: (id)sender
 {
     o_libvlc->b_die = VLC_TRUE;
+    [super terminate: sender];
 }
 
 @end