From 82c751ead0cd09d4feef2c7201574b42149046f9 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 18 Jan 2021 02:05:29 +0100 Subject: [PATCH] Remove unused glcontext_get_ptr --- gfx/drivers_context/cocoa_gl_ctx.m | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gfx/drivers_context/cocoa_gl_ctx.m b/gfx/drivers_context/cocoa_gl_ctx.m index 3aefc988b4..2a88a62ed2 100644 --- a/gfx/drivers_context/cocoa_gl_ctx.m +++ b/gfx/drivers_context/cocoa_gl_ctx.m @@ -78,6 +78,9 @@ static GLContextClass* g_hw_ctx = NULL; static GLContextClass* g_context = NULL; static unsigned g_minor = 0; static unsigned g_major = 0; +#ifdef OSX +static NSOpenGLPixelFormat* g_format; +#endif #if defined(HAVE_COCOATOUCH) static GLKView *g_view = NULL; @@ -112,10 +115,6 @@ void *nsview_get_ptr(void) void nsview_set_ptr(CocoaView *p) { g_instance = p; } -#ifdef OSX -static NSOpenGLPixelFormat* g_format; -void *glcontext_get_ptr(void) { return (BRIDGE void *)g_context; } -#endif static uint32_t cocoagl_gfx_ctx_get_flags(void *data) {