From 8e028f4db38d05a8cb102bafd3aa9f2b24846da2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Andr=C3=A9=20Santoni?= Date: Tue, 19 Nov 2019 14:50:21 +0700 Subject: [PATCH] Remove useless HAVE_COCOA_METAL ifdef --- gfx/drivers_context/cocoa_gl_ctx.m | 6 ------ 1 file changed, 6 deletions(-) diff --git a/gfx/drivers_context/cocoa_gl_ctx.m b/gfx/drivers_context/cocoa_gl_ctx.m index 0e16a44d8d..f045cbe044 100644 --- a/gfx/drivers_context/cocoa_gl_ctx.m +++ b/gfx/drivers_context/cocoa_gl_ctx.m @@ -858,7 +858,6 @@ static void *cocoagl_gfx_ctx_init(video_frame_info_t *video_info, void *video_dr return cocoa_ctx; } -#ifdef HAVE_COCOA_METAL static bool cocoagl_gfx_ctx_set_resize(void *data, unsigned width, unsigned height) { #ifdef HAVE_VULKAN @@ -898,7 +897,6 @@ static bool cocoagl_gfx_ctx_set_resize(void *data, unsigned width, unsigned heig return true; } -#endif const gfx_ctx_driver_t gfx_ctx_cocoagl = { cocoagl_gfx_ctx_init, @@ -920,11 +918,7 @@ const gfx_ctx_driver_t gfx_ctx_cocoagl = { NULL, /* update_title */ #endif cocoagl_gfx_ctx_check_window, -#if defined(HAVE_COCOA_METAL) cocoagl_gfx_ctx_set_resize, -#else - NULL, /* set_resize */ -#endif cocoagl_gfx_ctx_has_focus, cocoagl_gfx_ctx_suppress_screensaver, #if defined(HAVE_COCOATOUCH)