mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 18:00:10 +01:00
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 <kenneth@whitecape.org> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
61e0f11170
commit
c5adc1c8b5
1 changed files with 0 additions and 6 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue