diff options
author | Hans Goudey <h.goudey@me.com> | 2022-09-29 06:36:06 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-09-29 07:13:58 +0300 |
commit | 57620af33c3d11028afc43a7311cb69e8c3d573c (patch) | |
tree | 370214f5790631c6d50ca391632a48a8ea943201 /source/blender/blenkernel/intern/customdata.cc | |
parent | 0c282c068f1a132b1689ca0d5142a86a6d238895 (diff) |
Cleanup: Remove unused BMesh function
Diffstat (limited to 'source/blender/blenkernel/intern/customdata.cc')
-rw-r--r-- | source/blender/blenkernel/intern/customdata.cc | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/source/blender/blenkernel/intern/customdata.cc b/source/blender/blenkernel/intern/customdata.cc index 66b929d7c55..ea23ec245c2 100644 --- a/source/blender/blenkernel/intern/customdata.cc +++ b/source/blender/blenkernel/intern/customdata.cc @@ -3654,23 +3654,6 @@ void *CustomData_set_layer_n(const CustomData *data, const int type, const int n return ptr; } -void CustomData_set(const CustomData *data, const int index, const int type, const void *source) -{ - void *dest = CustomData_get(data, index, type); - const LayerTypeInfo *typeInfo = layerType_getInfo(type); - - if (!dest) { - return; - } - - if (typeInfo->copy) { - typeInfo->copy(source, dest, 1); - } - else { - memcpy(dest, source, typeInfo->size); - } -} - /* BMesh functions */ void CustomData_bmesh_update_active_layers(CustomData *fdata, CustomData *ldata) |