From 7c9f357c1bc5f049de9627846fdd3f7e7015ded5 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 19 Nov 2015 14:59:26 +0100 Subject: [PATCH] Simplify glx_wait_notify --- gfx/drivers_context/glx_ctx.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/gfx/drivers_context/glx_ctx.c b/gfx/drivers_context/glx_ctx.c index 612fb3ce40..229abff3f1 100644 --- a/gfx/drivers_context/glx_ctx.c +++ b/gfx/drivers_context/glx_ctx.c @@ -56,14 +56,6 @@ static PFNGLXCREATECONTEXTATTRIBSARBPROC glx_create_context_attribs; static Bool glx_wait_notify(Display *d, XEvent *e, char *arg) { - driver_t *driver = driver_get_ptr(); - gfx_ctx_glx_data_t *glx = (gfx_ctx_glx_data_t*)driver->video_context_data; - - (void)d; - (void)e; - - if (!glx) - return false; return (e->type == MapNotify) && (e->xmap.window == g_x11_win); }