egl/haiku: kill off haiku_log()
authorEmil Velikov <emil.l.velikov@gmail.com>
Thu, 11 Jun 2015 11:22:28 +0000 (12:22 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 12 Jun 2015 14:17:40 +0000 (15:17 +0100)
It's an incomplete copy of the default _eglLog() implementation. Just
use the default logger.

Cc: Alexander von Gluck IV <kallisti5@unixzen.com>
Acked-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
src/egl/drivers/haiku/egl_haiku.cpp

index 056fafc729d1d9c0ff214433a22c6ac14bca8e44..2933acc95cc68f2530f0113410a1b77e1a58ee79 100644 (file)
@@ -76,28 +76,6 @@ struct haiku_egl_surface
 };
 
 
-static void
-haiku_log(EGLint level, const char *msg)
-{
-       switch (level) {
-               case _EGL_DEBUG:
-                       fprintf(stderr,"%s", msg);
-                       break;
-               case _EGL_INFO:
-                       fprintf(stderr,"%s", msg);
-                       break;
-               case _EGL_WARNING:
-                       fprintf(stderr,"%s", msg);
-                       break;
-               case _EGL_FATAL:
-                       fprintf(stderr,"%s", msg);
-                       break;
-               default:
-                       break;
-       }
-}
-
-
 /**
  * Called via eglCreateWindowSurface(), drv->API.CreateWindowSurface().
  */
@@ -241,8 +219,6 @@ init_haiku(_EGLDriver *drv, _EGLDisplay *dpy)
 {
        CALLED();
 
-       _eglSetLogProc(haiku_log);
-
        TRACE("Add configs\n");
        haiku_add_configs_for_visuals(dpy);