Cleanup: Remove unused CustomData functions

Pull Request: https://projects.blender.org/blender/blender/pulls/153950
This commit is contained in:
Hans Goudey 2026-02-05 16:08:22 +01:00 • committed by Hans Goudey
parent d852d85e10
commit 7022cfd007
2 changed files with 0 additions and 38 deletions

View file

@ -532,8 +532,6 @@ const char *CustomData_get_active_layer_name(const CustomData *data, eCustomData
*/
const char *CustomData_get_render_layer_name(const CustomData *data, eCustomDataType type);
bool CustomData_layer_is_anonymous(const CustomData *data, eCustomDataType type, int n);
void CustomData_bmesh_set_n(
CustomData *data, void *block, eCustomDataType type, int n, const void *source);
@ -603,14 +601,6 @@ bool CustomData_verify_versions(CustomData *data, int index);
void CustomData_bmesh_init_pool(CustomData *data, int totelem, char htype);
/**
* Validate and fix data of \a layer,
* if possible (needs relevant callback in layer's type to be defined).
*
* \return True if some errors were found.
*/
bool CustomData_layer_validate(CustomDataLayer *layer, uint totitems, bool do_fixes);
/* External file storage */
void CustomData_external_add(

View file

@ -2721,15 +2721,6 @@ void CustomData_set_layer_flag(CustomData *data, const eCustomDataType type, con
}
}
bool CustomData_layer_is_anonymous(const CustomData *data, eCustomDataType type, int n)
{
const int layer_index = CustomData_get_layer_index_n(data, type, n);
BLI_assert(layer_index >= 0);
return bke::attribute_name_is_anonymous(data->layers[layer_index].name);
}
static void customData_resize(CustomData *data, const int grow_amount)
{
data->layers = static_cast<CustomDataLayer *>(MEM_realloc_uninitialized(
@ -4199,25 +4190,6 @@ static bool CustomData_layer_ensure_data_exists(CustomDataLayer *layer, size_t c
return false;
}
bool CustomData_layer_validate(CustomDataLayer *layer, const uint totitems, const bool do_fixes)
{
BLI_assert(layer);
const LayerTypeInfo *typeInfo = layerType_getInfo(eCustomDataType(layer->type));
BLI_assert(typeInfo);
if (do_fixes) {
CustomData_layer_ensure_data_exists(layer, totitems);
}
BLI_assert((totitems == 0) || layer->data);
if (typeInfo->validate != nullptr) {
return typeInfo->validate(layer->data, totitems, do_fixes);
}
return false;
}
/** \} */
/* -------------------------------------------------------------------- */