From fd9ce24fa300d20afa8144f1b7fd42180742b51a Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Mon, 24 Nov 2025 17:10:58 +0100 Subject: [PATCH] counters: remove unused id var in local stats counter Ticket: #5613. --- src/counters.c | 1 - src/counters.h | 3 --- 2 files changed, 4 deletions(-) diff --git a/src/counters.c b/src/counters.c index 490769c21b..597ea8b75d 100644 --- a/src/counters.c +++ b/src/counters.c @@ -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++; } diff --git a/src/counters.h b/src/counters.h index 5e7e2bd40e..a083be0b5d 100644 --- a/src/counters.h +++ b/src/counters.h @@ -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;