AP_Param: remove unused variable

This commit is contained in:
Andy Piper 2024-02-19 18:42:47 +00:00 committed by Andrew Tridgell
parent a5b28cf3e3
commit 1ba5898b82
1 changed files with 0 additions and 2 deletions

View File

@ -969,7 +969,6 @@ AP_Param::find_by_index(uint16_t idx, enum ap_var_type *ptype, ParamToken *token
AP_Param* AP_Param::find_by_name(const char* name, enum ap_var_type *ptype, ParamToken *token)
{
AP_Param *ap;
uint16_t count = 0;
for (ap = AP_Param::first(token, ptype);
ap && *ptype != AP_PARAM_GROUP && *ptype != AP_PARAM_NONE;
ap = AP_Param::next_scalar(token, ptype)) {
@ -981,7 +980,6 @@ AP_Param* AP_Param::find_by_name(const char* name, enum ap_var_type *ptype, Para
break;
}
}
count++;
}
return ap;
}