summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2010-05-13 08:59:47 -0400
committerKristian Høgsberg <krh@bitplanet.net>2010-05-13 16:15:25 -0400
commit0c3f95e5e862c0d9a025d4886eccdf251991a522 (patch)
treeb2af898785d90d88765cfa222af8b944c9e26b1c
parentb3e27bca9fae8a921ae049da2d865ff023b13ce1 (diff)
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.
-rw-r--r--src/egl/main/egldriver.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/egl/main/egldriver.c b/src/egl/main/egldriver.c
index 0c69334642f..57b73edc4c6 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) {