From 8c96ee8903e0840816e340fcf29fe0606e19821b Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Wed, 16 Feb 2022 14:10:21 -0600 Subject: Cleanup: Deduplicate functions for creating attributes --- .../blenkernel/intern/geometry_component_pointcloud.cc | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'source/blender/blenkernel/intern/geometry_component_pointcloud.cc') diff --git a/source/blender/blenkernel/intern/geometry_component_pointcloud.cc b/source/blender/blenkernel/intern/geometry_component_pointcloud.cc index f6f3c4e1b4e..3db4db307a3 100644 --- a/source/blender/blenkernel/intern/geometry_component_pointcloud.cc +++ b/source/blender/blenkernel/intern/geometry_component_pointcloud.cc @@ -117,18 +117,6 @@ int PointCloudComponent::attribute_domain_size(const AttributeDomain domain) con namespace blender::bke { -template -static GVArray make_array_read_attribute(const void *data, const int domain_size) -{ - return VArray::ForSpan(Span((const T *)data, domain_size)); -} - -template -static GVMutableArray make_array_write_attribute(void *data, const int domain_size) -{ - return VMutableArray::ForSpan(MutableSpan((T *)data, domain_size)); -} - /** * In this function all the attribute providers for a point cloud component are created. Most data * in this function is statically allocated, because it does not change over time. -- cgit v1.2.3