From 4f970bb8111ec7235e0df50e08a39b3c75ccfa00 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Cerveau?= Date: Fri, 25 Mar 2022 13:00:13 +0100 Subject: [PATCH] gl: cocoa: fix warnings of unused variables Part-of: --- .../gst-plugins-base/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m | 6 ------ 1 file changed, 6 deletions(-) diff --git a/subprojects/gst-plugins-base/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m b/subprojects/gst-plugins-base/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m index 63f2d92..b58ef63 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m +++ b/subprojects/gst-plugins-base/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m @@ -203,14 +203,12 @@ gst_gl_window_cocoa_create_window (GstGLWindowCocoa *window_cocoa) NSRect rect = NSMakeRect (0, y, priv->preferred_width, priv->preferred_height); NSRect windowRect = NSMakeRect (0, y, priv->preferred_width, priv->preferred_height); GstGLContext *context = gst_gl_window_get_context (window); - GstGLContextCocoa *context_cocoa; GstGLCAOpenGLLayer *layer; GstGLNSView *glView; if (!context) return FALSE; - context_cocoa = GST_GL_CONTEXT_COCOA (context); layer = [[GstGLCAOpenGLLayer alloc] initWithGstGLContext:context]; layer.autoresizingMask = kCALayerWidthSizable | kCALayerHeightSizable; layer.needsDisplayOnBoundsChange = YES; @@ -242,10 +240,6 @@ gst_gl_window_cocoa_create_window (GstGLWindowCocoa *window_cocoa) static gboolean gst_gl_window_cocoa_open (GstGLWindow *window, GError **err) { - GstGLWindowCocoa *window_cocoa; - - window_cocoa = GST_GL_WINDOW_COCOA (window); - return TRUE; } -- 2.7.4