From 1ba5898b8264093f06fdd3effdc1b488f5db431e Mon Sep 17 00:00:00 2001 From: Andy Piper Date: Mon, 19 Feb 2024 18:42:47 +0000 Subject: [PATCH] AP_Param: remove unused variable --- libraries/AP_Param/AP_Param.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/libraries/AP_Param/AP_Param.cpp b/libraries/AP_Param/AP_Param.cpp index 996960a0b5..57a8268495 100644 --- a/libraries/AP_Param/AP_Param.cpp +++ b/libraries/AP_Param/AP_Param.cpp @@ -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; }