[vlc-commits] Remove stray function
Rémi Denis-Courmont
git at videolan.org
Sun Dec 2 19:36:59 CET 2018
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Dec 2 20:36:17 2018 +0200| [74f7d80e4f296898cf007ec5d2333eeb7d9901e2] | committer: Rémi Denis-Courmont
Remove stray function
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=74f7d80e4f296898cf007ec5d2333eeb7d9901e2
---
modules/gui/macosx/VLCVideoOutputProvider.m | 41 -----------------------------
1 file changed, 41 deletions(-)
diff --git a/modules/gui/macosx/VLCVideoOutputProvider.m b/modules/gui/macosx/VLCVideoOutputProvider.m
index 3f5f7beab7..cf065d33c7 100644
--- a/modules/gui/macosx/VLCVideoOutputProvider.m
+++ b/modules/gui/macosx/VLCVideoOutputProvider.m
@@ -158,47 +158,6 @@ int WindowOpen(vout_window_t *p_wnd, const vout_window_cfg_t *cfg)
return VLC_SUCCESS;
}
-static int WindowControl(vout_window_t *p_wnd, int i_query, va_list args)
-{
- @autoreleasepool {
- VLCVideoOutputProvider *voutProvider = [[VLCMain sharedInstance] voutProvider];
- if (!voutProvider) {
- return VLC_EGENERIC;
- }
-
- switch(i_query) {
- case VOUT_WINDOW_SET_STATE:
- {
- unsigned i_state = va_arg(args, unsigned);
-
- if (i_state & VOUT_WINDOW_STATE_BELOW)
- {
- msg_Dbg(p_wnd, "Ignore change to VOUT_WINDOW_STATE_BELOW");
- goto out;
- }
-
- NSInteger i_cooca_level = NSNormalWindowLevel;
- if (i_state & VOUT_WINDOW_STATE_ABOVE)
- i_cooca_level = NSStatusWindowLevel;
-
- dispatch_async(dispatch_get_main_queue(), ^{
- [voutProvider setWindowLevel:i_cooca_level forWindow:p_wnd];
- });
-
- break;
- }
- default:
- {
- msg_Warn(p_wnd, "unsupported control query: %i", i_query );
- return VLC_EGENERIC;
- }
- }
-
- out:
- return VLC_SUCCESS;
- }
-}
-
static void WindowClose(vout_window_t *p_wnd)
{
@autoreleasepool {
More information about the vlc-commits
mailing list