From a7e3f85fd6ba0feb1c435b4e2f0a27016f7955cf Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 12 Dec 2008 09:58:18 -0700 Subject: mesa: remove unused fixup table code in glsl compiler (cherry picked from commit 19ca2908be5df2240d694c67c6f190982e9f7922) --- src/mesa/shader/slang/slang_compile_function.c | 39 -------------------------- 1 file changed, 39 deletions(-) (limited to 'src/mesa/shader/slang/slang_compile_function.c') diff --git a/src/mesa/shader/slang/slang_compile_function.c b/src/mesa/shader/slang/slang_compile_function.c index bc926e6c0e..eca75dcb21 100644 --- a/src/mesa/shader/slang/slang_compile_function.c +++ b/src/mesa/shader/slang/slang_compile_function.c @@ -32,42 +32,6 @@ #include "slang_compile.h" #include "slang_mem.h" -/* slang_fixup_table */ - -void -slang_fixup_table_init(slang_fixup_table * fix) -{ - fix->table = NULL; - fix->count = 0; -} - -void -slang_fixup_table_free(slang_fixup_table * fix) -{ - _slang_free(fix->table); - slang_fixup_table_init(fix); -} - -/** - * Add a new fixup address to the table. - */ -GLboolean -slang_fixup_save(slang_fixup_table *fixups, GLuint address) -{ - fixups->table = (GLuint *) - _slang_realloc(fixups->table, - fixups->count * sizeof(GLuint), - (fixups->count + 1) * sizeof(GLuint)); - if (fixups->table == NULL) - return GL_FALSE; - fixups->table[fixups->count] = address; - fixups->count++; - return GL_TRUE; -} - - - -/* slang_function */ int slang_function_construct(slang_function * func) @@ -86,8 +50,6 @@ slang_function_construct(slang_function * func) _slang_variable_scope_ctr(func->parameters); func->param_count = 0; func->body = NULL; - //func->address = ~0; - //slang_fixup_table_init(&func->fixups); return 1; } @@ -101,7 +63,6 @@ slang_function_destruct(slang_function * func) slang_operation_destruct(func->body); _slang_free(func->body); } - //slang_fixup_table_free(&func->fixups); } -- cgit v1.2.3