Cleanup: remove redundant variable
This commit is contained in:
parent
04ef718226
commit
ad2fb92e9c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue