Cleanup: Unused function

Today unused part of 2cb3677557

Pull Request: https://projects.blender.org/blender/blender/pulls/120682
This commit is contained in:
Iliya Katueshenock
2024-04-16 00:59:16 +02:00
committed by Hans Goudey
parent 626959ed21
commit 6fc6bcdb82

View File

@@ -176,17 +176,6 @@ static GroupedSpan<int> gather_groups(const Span<int> group_indices,
return {OffsetIndices<int>(r_offsets), r_indices};
}
template<typename T, typename Function>
inline void parallel_transform(MutableSpan<T> data,
const int64_t grain_size,
const Function &function)
{
threading::parallel_for(data.index_range(), grain_size, [&](const IndexRange range) {
MutableSpan<T> data_range = data.slice(range);
std::transform(data_range.begin(), data_range.end(), data_range.begin(), function);
});
}
template<typename T> static T gather_mean(const VArray<T> &values, const Span<int> indices)
{
BLI_assert(!indices.is_empty());