Cleanup: remove unnecessary calls to as_span

This uses the new implicit conversions and constructors
that have been committed in the previous commit.

I tested these changes on Linux with gcc and on Windows.
This commit is contained in:
2020-07-08 22:29:10 +02:00
parent 403384998a
commit 31bc76ea4e
6 changed files with 26 additions and 26 deletions

View File

@@ -287,14 +287,14 @@ void constant_folding(MFNetwork &network, ResourceCollector &resources)
}
Array<MFOutputSocket *> folded_sockets = compute_constant_sockets_and_add_folded_nodes(
network, inputs_to_fold.as_span(), resources);
network, inputs_to_fold, resources);
for (uint i : inputs_to_fold.index_range()) {
MFOutputSocket &original_socket = *inputs_to_fold[i]->origin();
network.relink(original_socket, *folded_sockets[i]);
}
network.remove(temporary_nodes.as_span());
network.remove(temporary_nodes);
}
/** \} */