From 021a68b7e83259faedacea8b3a18e754bed6277a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Thu, 13 May 2010 08:59:47 -0400 Subject: egl: Drop broken _EGL_PLATFORM_NO_OS code It would do strlen(library_suffix()) in _eglLoaderFile(), with library_suffix() returning NULL. So obviuosly not used or tested. --- src/egl/main/egldriver.c | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/src/egl/main/egldriver.c b/src/egl/main/egldriver.c index 28649563a4d..2913ce2ece9 100644 --- a/src/egl/main/egldriver.c +++ b/src/egl/main/egldriver.c @@ -87,32 +87,6 @@ library_suffix(void) } -#else /* _EGL_PLATFORM_NO_OS */ - - -static const char DefaultDriverName[] = "builtin"; - -typedef void *lib_handle; - -static INLINE void * -open_library(const char *filename) -{ - return (void *) filename; -} - -static INLINE void -close_library(void *lib) -{ -} - - -static const char * -library_suffix(void) -{ - return NULL; -} - - #endif @@ -157,12 +131,6 @@ _eglOpenLibrary(const char *driverPath, lib_handle *handle) else { error = dlerror(); } -#else /* _EGL_PLATFORM_NO_OS */ - /* must be the default driver name */ - if (strcmp(driverPath, DefaultDriverName) == 0) - mainFunc = (_EGLMain_t) _eglMain; - else - error = "not builtin driver"; #endif if (!lib) { -- cgit v1.2.1