diff options
author | Hans Goudey <h.goudey@me.com> | 2022-09-06 17:43:32 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-09-06 17:43:32 +0300 |
commit | 3484c6d4f116409ca55cdc46325f4703d21c20c8 (patch) | |
tree | f77c24701c5aa844236e6300a72d83d752950c98 /source/blender/blenkernel/intern/geometry_component_mesh.cc | |
parent | e3afead9aa4677ea91e3c41bbaf814533361cec2 (diff) |
Cleanup: Remove unused update custom data pointers in attribute API
Unused after 05952aa94d33eeb, 410a6efb747f188, and e9f82d3dc7eebad.
Diffstat (limited to 'source/blender/blenkernel/intern/geometry_component_mesh.cc')
-rw-r--r-- | source/blender/blenkernel/intern/geometry_component_mesh.cc | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/source/blender/blenkernel/intern/geometry_component_mesh.cc b/source/blender/blenkernel/intern/geometry_component_mesh.cc index f5f667a02eb..d0bfc5f5499 100644 --- a/source/blender/blenkernel/intern/geometry_component_mesh.cc +++ b/source/blender/blenkernel/intern/geometry_component_mesh.cc @@ -1158,8 +1158,6 @@ class NormalAttributeProvider final : public BuiltinAttributeProvider { */ static ComponentAttributeProviders create_attribute_providers_for_mesh() { - static auto update_custom_data_pointers = [](void * /*owner*/) {}; - #define MAKE_MUTABLE_CUSTOM_DATA_GETTER(NAME) \ [](void *owner) -> CustomData * { \ Mesh *mesh = static_cast<Mesh *>(owner); \ @@ -1178,20 +1176,16 @@ static ComponentAttributeProviders create_attribute_providers_for_mesh() static CustomDataAccessInfo corner_access = {MAKE_MUTABLE_CUSTOM_DATA_GETTER(ldata), MAKE_CONST_CUSTOM_DATA_GETTER(ldata), - MAKE_GET_ELEMENT_NUM_GETTER(totloop), - update_custom_data_pointers}; + MAKE_GET_ELEMENT_NUM_GETTER(totloop)}; static CustomDataAccessInfo point_access = {MAKE_MUTABLE_CUSTOM_DATA_GETTER(vdata), MAKE_CONST_CUSTOM_DATA_GETTER(vdata), - MAKE_GET_ELEMENT_NUM_GETTER(totvert), - update_custom_data_pointers}; + MAKE_GET_ELEMENT_NUM_GETTER(totvert)}; static CustomDataAccessInfo edge_access = {MAKE_MUTABLE_CUSTOM_DATA_GETTER(edata), MAKE_CONST_CUSTOM_DATA_GETTER(edata), - MAKE_GET_ELEMENT_NUM_GETTER(totedge), - update_custom_data_pointers}; + MAKE_GET_ELEMENT_NUM_GETTER(totedge)}; static CustomDataAccessInfo face_access = {MAKE_MUTABLE_CUSTOM_DATA_GETTER(pdata), MAKE_CONST_CUSTOM_DATA_GETTER(pdata), - MAKE_GET_ELEMENT_NUM_GETTER(totpoly), - update_custom_data_pointers}; + MAKE_GET_ELEMENT_NUM_GETTER(totpoly)}; #undef MAKE_CONST_CUSTOM_DATA_GETTER #undef MAKE_MUTABLE_CUSTOM_DATA_GETTER |