diff options
author | Kenneth Graunke <[email protected]> | 2013-11-22 03:38:26 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2013-12-01 15:32:55 -0800 |
commit | c5adc1c8b554d3976b439ab344519847789c146b (patch) | |
tree | d989009d9c8c6c2bbb2e6cc1c6ab4843632f6968 /src/glsl | |
parent | 61e0f111706a225444c927a6aeb6107b9aafe17f (diff) |
glsl: Remove useless iteration through function parameters.
There's no need to loop through the "parameters" list and remove every
element; move_nodes_to(¶meters) already throws away all elements of
the destination list.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl')
-rw-r--r-- | src/glsl/ir.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/glsl/ir.cpp b/src/glsl/ir.cpp index ffff2976aa4..3be7d51707a 100644 --- a/src/glsl/ir.cpp +++ b/src/glsl/ir.cpp @@ -1729,12 +1729,6 @@ ir_function_signature::replace_parameters(exec_list *new_params) * parameter information comes from the function prototype, it may either * specify incorrect parameter names or not have names at all. */ - foreach_iter(exec_list_iterator, iter, parameters) { - assert(((ir_instruction *) iter.get())->as_variable() != NULL); - - iter.remove(); - } - new_params->move_nodes_to(¶meters); } |