From: Brian Date: Tue, 16 Jan 2007 21:19:37 +0000 (-0700) Subject: remove dead code X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4f027a33b90fc855de324ac07328a7df0568c6af;p=mesa.git remove dead code --- diff --git a/src/mesa/shader/slang/slang_codegen.c b/src/mesa/shader/slang/slang_codegen.c index 635f47c20e0..666f36b7cfe 100644 --- a/src/mesa/shader/slang/slang_codegen.c +++ b/src/mesa/shader/slang/slang_codegen.c @@ -1911,20 +1911,9 @@ _slang_gen_operation(slang_assemble_ctx * A, slang_operation *oper) _slang_gen_operation(A, &oper->children[1])); case slang_oper_less: /* child[0] < child[1] ----> child[1] > child[0] */ -#if 0 - { - slang_ir_node *n; - assert(oper->num_children == 2); - /* XXX tranpose children */ - n = _slang_gen_function_call_name(A, "<", oper, NULL); - return n; - } -#else - /** the operands must be ints or floats, not vectors */ return new_node(IR_SGT, _slang_gen_operation(A, &oper->children[1]), _slang_gen_operation(A, &oper->children[0])); -#endif case slang_oper_greaterequal: return new_node(IR_SGE, _slang_gen_operation(A, &oper->children[0]),