main: Remove unused function _mesa_shader_index_to_type().
authorPaul Berry <stereotype441@gmail.com>
Tue, 17 Dec 2013 18:07:24 +0000 (10:07 -0800)
committerPaul Berry <stereotype441@gmail.com>
Mon, 30 Dec 2013 19:21:14 +0000 (11:21 -0800)
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/shaderobj.h

index aff178f2690fa1a74064a60eee712005a872b405..155058d71871c4d83bdf116b28f72efd54620f10 100644 (file)
@@ -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