[vlc-commits] [Git][videolan/vlc][master] macosx: Remove unused code in VLCVoutView

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Fri Nov 18 11:38:26 UTC 2022



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
f22e2b37 by Claudio Cambra at 2022-11-18T11:05:27+00:00
macosx: Remove unused code in VLCVoutView

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

- - - - -


1 changed file:

- modules/gui/macosx/windows/video/VLCVoutView.m


Changes:

=====================================
modules/gui/macosx/windows/video/VLCVoutView.m
=====================================
@@ -95,33 +95,6 @@
     NSRectFill(rect);
 }
 
-- (void)addVoutLayer:(CALayer *)aLayer
-{
-    if (self.layer == nil) {
-        [self setLayer:[CALayer layer]];
-        [self setWantsLayer:YES];
-    }
-
-    [CATransaction begin];
-    aLayer.opaque = 1.;
-    aLayer.hidden = NO;
-    aLayer.bounds = self.layer.bounds;
-    [self.layer addSublayer:aLayer];
-    [self setNeedsDisplay:YES];
-    [aLayer setNeedsDisplay];
-    CGRect frame = aLayer.bounds;
-    frame.origin.x = frame.origin.y = 0.;
-    aLayer.frame = frame;
-    [CATransaction commit];
-}
-
-- (void)removeVoutLayer:(CALayer *)aLayer
-{
-    [CATransaction begin];
-    [aLayer removeFromSuperlayer];
-    [CATransaction commit];
-}
-
 - (NSDragOperation)draggingEntered:(id <NSDraggingInfo>)sender
 {
     if ((NSDragOperationGeneric & [sender draggingSourceOperationMask]) == NSDragOperationGeneric)



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

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/f22e2b370aa2eab411040350b9aade8fa5d4e1a6
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