Remove unused _mesa_glsl_get_vector_type

This function has been completely replaced by glsl_type::get_instance.
This commit is contained in:
Ian Romanick 2010-03-24 17:47:20 -07:00
parent c4e2627045
commit 532edd9bc4
2 changed files with 0 additions and 53 deletions

View file

@ -94,56 +94,6 @@ _mesa_glsl_initialize_types(struct _mesa_glsl_parse_state *state)
}
const struct glsl_type *
_mesa_glsl_get_vector_type(unsigned base_type, unsigned vector_length)
{
switch (base_type) {
case GLSL_TYPE_UINT:
switch (vector_length) {
case 1:
case 2:
case 3:
case 4:
return glsl_uint_type + (vector_length - 1);
default:
return glsl_error_type;
}
case GLSL_TYPE_INT:
switch (vector_length) {
case 1:
case 2:
case 3:
case 4:
return glsl_int_type + (vector_length - 1);
default:
return glsl_error_type;
}
case GLSL_TYPE_FLOAT:
switch (vector_length) {
case 1:
case 2:
case 3:
case 4:
return glsl_float_type + (vector_length - 1);
default:
return glsl_error_type;
}
case GLSL_TYPE_BOOL:
switch (vector_length) {
case 1:
case 2:
case 3:
case 4:
return glsl_bool_type + (vector_length - 1);
default:
return glsl_error_type;
}
default:
return glsl_error_type;
}
}
const glsl_type *glsl_type::get_base_type() const
{
switch (base_type) {

View file

@ -254,9 +254,6 @@ extern "C" {
extern void
_mesa_glsl_initialize_types(struct _mesa_glsl_parse_state *state);
extern const struct glsl_type *
_mesa_glsl_get_vector_type(unsigned base_type, unsigned vector_length);
extern const struct glsl_type *const glsl_error_type;
extern const struct glsl_type *const glsl_int_type;
extern const struct glsl_type *const glsl_uint_type;