Cleanup: Remove unused UI layout function

This commit is contained in:
Hans Goudey
2024-12-06 14:48:28 -05:00
parent b7a056b839
commit 7a8a58e7e5
2 changed files with 0 additions and 24 deletions

View File

@@ -3036,12 +3036,6 @@ void uiItemEnumR_prop(uiLayout *layout,
PointerRNA *ptr,
PropertyRNA *prop,
int value);
void uiItemEnumR(uiLayout *layout,
std::optional<blender::StringRefNull> name,
int icon,
PointerRNA *ptr,
blender::StringRefNull propname,
int value);
void uiItemEnumR_string_prop(uiLayout *layout,
PointerRNA *ptr,
PropertyRNA *prop,

View File

@@ -2632,24 +2632,6 @@ void uiItemEnumR_prop(uiLayout *layout,
uiItemFullR(layout, ptr, prop, RNA_ENUM_VALUE, value, UI_ITEM_NONE, name, icon);
}
void uiItemEnumR(uiLayout *layout,
const std::optional<StringRefNull> name,
int icon,
PointerRNA *ptr,
const StringRefNull propname,
int value)
{
PropertyRNA *prop = RNA_struct_find_property(ptr, propname.c_str());
if (prop == nullptr) {
ui_item_disabled(layout, propname.c_str());
RNA_warning("property not found: %s.%s", RNA_struct_identifier(ptr->type), propname.c_str());
return;
}
uiItemFullR(layout, ptr, prop, RNA_ENUM_VALUE, value, UI_ITEM_NONE, name, icon);
}
void uiItemEnumR_string_prop(uiLayout *layout,
PointerRNA *ptr,
PropertyRNA *prop,