[vlc-commits] [Git][videolan/vlc][master] macosx: Remove unused helper methods in VLCVideoOutputProvider

François Cartegnie (@fcartegnie) gitlab at videolan.org
Mon Dec 12 09:43:42 UTC 2022



François Cartegnie pushed to branch master at VideoLAN / VLC


Commits:
d4f5bd58 by Claudio Cambra at 2022-12-12T09:28:31+00:00
macosx: Remove unused helper methods in VLCVideoOutputProvider

Signed-off-by: Claudio Cambra <developer at claudiocambra.com>

- - - - -


2 changed files:

- modules/gui/macosx/windows/video/VLCVideoOutputProvider.h
- modules/gui/macosx/windows/video/VLCVideoOutputProvider.m


Changes:

=====================================
modules/gui/macosx/windows/video/VLCVideoOutputProvider.h
=====================================
@@ -42,9 +42,6 @@ extern NSString *VLCWindowLevelKey;
 - (void)setWindowLevel:(NSInteger)i_level forWindow:(vlc_window_t *)p_wnd;
 - (void)setFullscreen:(int)i_full forWindow:(vlc_window_t *)p_wnd withAnimation:(BOOL)b_animation;
 
-- (void)updateControlsBarsUsingBlock:(void (^)(VLCControlsBarCommon *controlsBar))block;
-- (void)updateWindowsUsingBlock:(void (^)(VLCVideoWindowCommon *o_window))windowUpdater;
-
 - (void)updateWindowLevelForHelperWindows:(NSInteger)i_level;
 
 @end


=====================================
modules/gui/macosx/windows/video/VLCVideoOutputProvider.m
=====================================
@@ -557,26 +557,6 @@ int WindowOpen(vlc_window_t *p_wnd)
 #pragma mark -
 #pragma mark Misc methods
 
-- (void)updateControlsBarsUsingBlock:(void (^)(VLCControlsBarCommon *controlsBar))block
-{
-    [_voutWindows enumerateKeysAndObjectsUsingBlock:^(id key, id obj, BOOL *stop) {
-
-        if ([obj respondsToSelector:@selector(controlsBar)]) {
-            VLCControlsBarCommon *o_controlsBar = [obj controlsBar];
-            if (o_controlsBar && block)
-                block(o_controlsBar);
-        }
-    }];
-}
-
-- (void)updateWindowsUsingBlock:(void (^)(VLCVideoWindowCommon *o_window))windowUpdater
-{
-    [_voutWindows enumerateKeysAndObjectsUsingBlock:^(id key, id obj, BOOL *stop) {
-        if ([obj isKindOfClass: [NSWindow class]])
-            windowUpdater(obj);
-    }];
-}
-
 - (void)updateWindowLevelForHelperWindows:(NSInteger)i_level
 {
     if (var_InheritBool(getIntf(), "video-wallpaper"))



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/d4f5bd58b94daf98575ca091c195c678f34ee004

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/d4f5bd58b94daf98575ca091c195c678f34ee004
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list