Mesa (master): main: Remove unused function _mesa_shader_index_to_type().
Paul Berry
stereotype441 at kemper.freedesktop.org
Mon Dec 30 20:48:27 UTC 2013
Module: Mesa
Branch: master
Commit: 89c35c59a4421db863ba70b28a546b294f7b1ba9
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=89c35c59a4421db863ba70b28a546b294f7b1ba9
Author: Paul Berry <stereotype441 at gmail.com>
Date: Tue Dec 17 10:07:24 2013 -0800
main: Remove unused function _mesa_shader_index_to_type().
Reviewed-by: Brian Paul <brianp at vmware.com>
---
src/mesa/main/shaderobj.h | 15 ---------------
1 file changed, 15 deletions(-)
diff --git a/src/mesa/main/shaderobj.h b/src/mesa/main/shaderobj.h
index aff178f..155058d 100644
--- a/src/mesa/main/shaderobj.h
+++ b/src/mesa/main/shaderobj.h
@@ -118,21 +118,6 @@ _mesa_shader_type_to_index(GLenum v)
}
-static inline GLenum
-_mesa_shader_index_to_type(GLuint i)
-{
- static const GLenum enums[MESA_SHADER_TYPES] = {
- GL_VERTEX_SHADER,
- GL_GEOMETRY_SHADER,
- GL_FRAGMENT_SHADER
- };
- if (i >= MESA_SHADER_TYPES)
- return 0;
- else
- return enums[i];
-}
-
-
#ifdef __cplusplus
}
#endif
More information about the mesa-commit
mailing list