From ee36f14fa54723f2da3cf6054f822ebf05cca247 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Wed, 10 Nov 2010 23:14:45 -0800 Subject: glsl: Remove GLSL_TYPE_FUNCTION define. Functions are not first class objects in GLSL, so there is never a value of function type. No code actually used this except for one function which asserted it shouldn't occur. One comment mentioned it, but was incorrect. So we may as well remove it entirely. --- src/glsl/ir_function.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/glsl/ir_function.cpp') diff --git a/src/glsl/ir_function.cpp b/src/glsl/ir_function.cpp index dfdec144b2..8db70119ec 100644 --- a/src/glsl/ir_function.cpp +++ b/src/glsl/ir_function.cpp @@ -70,7 +70,6 @@ type_compare(const glsl_type *a, const glsl_type *b) */ return (type_compare(a->fields.array, b->fields.array) == 0) ? 0 : -1; - case GLSL_TYPE_FUNCTION: case GLSL_TYPE_VOID: case GLSL_TYPE_ERROR: default: -- cgit v1.2.3