diff options
author | Paul Berry <stereotype441@gmail.com> | 2014-01-07 11:40:00 -0800 |
---|---|---|
committer | Paul Berry <stereotype441@gmail.com> | 2014-01-08 07:32:14 -0800 |
commit | 31ec2f83385c4f13c9c8831a90db982883bbedcd (patch) | |
tree | 2dffd8b0cbca147cf0e0ae437962f55b712d2975 /src/glsl | |
parent | acfc58a7e593cdb377527c8b84e2fd9bf5906079 (diff) | |
download | external_mesa3d-31ec2f83385c4f13c9c8831a90db982883bbedcd.zip external_mesa3d-31ec2f83385c4f13c9c8831a90db982883bbedcd.tar.gz external_mesa3d-31ec2f83385c4f13c9c8831a90db982883bbedcd.tar.bz2 |
mesa: Remove _mesa_progshader_enum_to_string(), which is no longer used.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src/glsl')
-rw-r--r-- | src/glsl/glsl_parser_extras.cpp | 29 | ||||
-rw-r--r-- | src/glsl/glsl_parser_extras.h | 3 |
2 files changed, 0 insertions, 32 deletions
diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl_parser_extras.cpp index ce8279f..fe29ddd 100644 --- a/src/glsl/glsl_parser_extras.cpp +++ b/src/glsl/glsl_parser_extras.cpp @@ -329,35 +329,6 @@ _mesa_glsl_parse_state::process_version_directive(YYLTYPE *locp, int version, } } -extern "C" { - -/** - * Translate a GLenum to a short shader stage name for debug printouts and - * error messages. - * - * It recognizes the PROGRAM variants of the names so it can be used - * with a struct gl_program->Target, not just a struct - * gl_shader->Type. - */ -const char * -_mesa_progshader_enum_to_string(GLenum type) -{ - switch (type) { - case GL_VERTEX_SHADER: - case GL_VERTEX_PROGRAM_ARB: - return "vertex"; - case GL_FRAGMENT_SHADER: - case GL_FRAGMENT_PROGRAM_ARB: - return "fragment"; - case GL_GEOMETRY_SHADER: - return "geometry"; - default: - assert(!"Should not get here."); - return "unknown"; - } -} - -} /* extern "C" */ /** * Translate a gl_shader_stage to a short shader stage name for debug diff --git a/src/glsl/glsl_parser_extras.h b/src/glsl/glsl_parser_extras.h index 6572488..2444a96 100644 --- a/src/glsl/glsl_parser_extras.h +++ b/src/glsl/glsl_parser_extras.h @@ -440,9 +440,6 @@ extern "C" { extern const char * _mesa_shader_stage_to_string(unsigned stage); -extern const char * -_mesa_progshader_enum_to_string(GLenum type); - extern int glcpp_preprocess(void *ctx, const char **shader, char **info_log, const struct gl_extensions *extensions, struct gl_context *gl_ctx); |