vlib: remove unused simple counters fields 36/32236/4
authorOle Troan <ot@cisco.com>
Thu, 6 May 2021 14:15:35 +0000 (16:15 +0200)
committerDamjan Marion <dmarion@me.com>
Thu, 6 May 2021 18:09:50 +0000 (18:09 +0000)
Type: improvement
Signed-off-by: Ole Troan <ot@cisco.com>
Change-Id: I46cfdcd02e5fda310367da17532cd2f355044811
Signed-off-by: Ole Troan <ot@cisco.com>
src/vlib/counter.h

index 04ab837..01aefd8 100644 (file)
 typedef struct
 {
   counter_t **counters;         /**< Per-thread u64 non-atomic counters */
-  counter_t *value_at_last_serialize;  /**< Values as of last serialize. */
-  u32 last_incremental_serialize_index;        /**< Last counter index
-                                           serialized incrementally. */
-
   char *name;                  /**< The counter collection's name. */
   char *stat_segment_name;    /**< Name in stat segment directory */
 } vlib_simple_counter_main_t;
@@ -207,8 +203,6 @@ vlib_counter_zero (vlib_counter_t * a)
 typedef struct
 {
   vlib_counter_t **counters;   /**< Per-thread u64 non-atomic counter pairs */
-  vlib_counter_t *value_at_last_serialize; /**< Counter values as of last serialize. */
-  u32 last_incremental_serialize_index;        /**< Last counter index serialized incrementally. */
   char *name; /**< The counter collection's name. */
   char *stat_segment_name;     /**< Name in stat segment directory */
 } vlib_combined_counter_main_t;