diff --git a/src/Fl_Gl_Choice.cxx b/src/Fl_Gl_Choice.cxx index fb19b0e68..f0dd5ce29 100644 --- a/src/Fl_Gl_Choice.cxx +++ b/src/Fl_Gl_Choice.cxx @@ -241,14 +241,6 @@ static void del_context(GLContext ctx) { #if defined(USE_X11) -static bool ctxErrorOccurred = false; -static int ctxErrorHandler( Display *dpy, XErrorEvent *ev ) -{ - ctxErrorOccurred = true; - return 0; -} - - GLContext fl_create_gl_context(Fl_Window *window, const Fl_Gl_Choice* g) { GLContext shared_ctx = 0; if (context_list && nContext) shared_ctx = context_list[0];