Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2022-09-29 06:36:06 +0300
committerJeroen Bakker <jeroen@blender.org>2022-10-03 15:59:17 +0300
commite01022e5d2618194e48d0845caa90f0c57211a72 (patch)
tree669157bc859ee2dcfc4557c353ce0e56c0aa4c50
parenta36bfb3bbc5e17dc21412bd4de0c1e334eb34744 (diff)
Cleanup: Remove unused BMesh function
-rw-r--r--source/blender/blenkernel/BKE_customdata.h6
-rw-r--r--source/blender/blenkernel/intern/customdata.cc17
2 files changed, 0 insertions, 23 deletions
diff --git a/source/blender/blenkernel/BKE_customdata.h b/source/blender/blenkernel/BKE_customdata.h
index 22e4a2bce87..3b31183f2c4 100644
--- a/source/blender/blenkernel/BKE_customdata.h
+++ b/source/blender/blenkernel/BKE_customdata.h
@@ -457,12 +457,6 @@ const char *CustomData_get_active_layer_name(const struct CustomData *data, int
*/
const char *CustomData_get_render_layer_name(const struct CustomData *data, int type);
-/**
- * Copies the data from source to the data element at index in the first layer of type
- * no effect if there is no layer of type.
- */
-void CustomData_set(const struct CustomData *data, int index, int type, const void *source);
-
void CustomData_bmesh_set(const struct CustomData *data,
void *block,
int type,
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)