counters: remove unused id var in local stats counter

Ticket: #5613.
pull/14398/head
Victor Julien 8 months ago
parent 2e1705e54a
commit fd9ce24fa3

@ -1235,7 +1235,6 @@ static int StatsGetCounterArrayRange(uint16_t s_id, uint16_t e_id,
i = 1;
while ((pc != NULL) && (pc->id <= e_id)) {
pca->head[i].pc = pc;
pca->head[i].id = pc->id;
pc = pc->next;
i++;
}

@ -95,9 +95,6 @@ typedef struct StatsLocalCounter_ {
/* pointer to the counter that corresponds to this local counter */
StatsCounter *pc;
/* local counter id of the above counter */
uint16_t id;
/* total value of the adds/increments, or exact value in case of 'set' */
int64_t value;

Loading…
Cancel
Save