diff options
author | Chia-I Wu <olvaffe@gmail.com> | 2010-01-31 11:26:56 +0800 |
---|---|---|
committer | Chia-I Wu <olvaffe@gmail.com> | 2010-01-31 11:31:58 +0800 |
commit | 996fd61442e4186e23418cc8a3b0cd593398be26 (patch) | |
tree | 44d3eaed3e7b106a05c2ade2c9bb31d7555c56f0 /src/egl/main/eglcontext.c | |
parent | 89e6eb5fbe7fb036f5d1a5fef040cc9635a10672 (diff) |
egl: Remove code blocks that are commented out.
They are either unit tests or to demonstrate how functions are supposed
to be used. The unit test is outdated and it should be better to take a
look at any of the working drivers to see how a function is used.
Diffstat (limited to 'src/egl/main/eglcontext.c')
-rw-r--r-- | src/egl/main/eglcontext.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/egl/main/eglcontext.c b/src/egl/main/eglcontext.c index 37c4b25b68..d0c6b1b64c 100644 --- a/src/egl/main/eglcontext.c +++ b/src/egl/main/eglcontext.c @@ -58,20 +58,6 @@ _EGLContext * _eglCreateContext(_EGLDriver *drv, _EGLDisplay *dpy, _EGLConfig *conf, _EGLContext *share_list, const EGLint *attrib_list) { -#if 0 /* example code */ - _EGLContext *context; - - context = (_EGLContext *) calloc(1, sizeof(_EGLContext)); - if (!context) - return NULL; - - if (!_eglInitContext(drv, context, conf, attrib_list)) { - free(context); - return NULL; - } - - return context; -#endif return NULL; } |