Cleanup: remove redundant variable

This commit is contained in:
Campbell Barton 2021-08-12 17:42:04 +10:00
parent 04ef718226
commit ad2fb92e9c
1 changed files with 2 additions and 3 deletions

View File

@ -991,10 +991,9 @@ FunctionRNA *RNA_struct_find_function(StructRNA *srna, const char *identifier)
{
#if 1
FunctionRNA *func;
StructRNA *type;
for (type = srna; type; type = type->base) {
for (; srna; srna = srna->base) {
func = (FunctionRNA *)BLI_findstring_ptr(
&type->functions, identifier, offsetof(FunctionRNA, identifier));
&srna->functions, identifier, offsetof(FunctionRNA, identifier));
if (func) {
return func;
}