]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Cleanup
authorIgor Putovny <igor.putovny@nic.cz>
Thu, 13 Feb 2025 17:28:12 +0000 (18:28 +0100)
committerIgor Putovny <igor.putovny@nic.cz>
Thu, 13 Feb 2025 17:28:12 +0000 (18:28 +0100)
proto/aggregator/aggregator.c
proto/aggregator/aggregator.h

index c60bad2a6828da03f229f5301a53f55d4db26c1d..b957cbb670e86f7aae9a1f65d2c4e4c96ae015b0 100644 (file)
@@ -1232,28 +1232,8 @@ run_aggregation(struct aggregator_proto *p)
 {
   assert(p->root != NULL);
 
-  times_update(&main_timeloop);
-
-  log("---- AGGREGATION START ----");
-
-  times_update(&main_timeloop);
-  log("==== BUILDING TRIE ====");
   construct_trie(p);
-  times_update(&main_timeloop);
-  log("==== BUILDING TRIE DONE  ====");
-
   calculate_trie(p);
-
-  times_update(&main_timeloop);
-  log("==== COLLECTING PREFIXES ====");
-  times_update(&main_timeloop);
-  log("==== COLLECTING PREFIXES DONE ====");
-
-  times_update(&main_timeloop);
-
-  log("%d prefixes before aggregation", p->before_count);
-  log("%d prefixes after aggregation", p->after_count);
-  log("---- AGGREGATION DONE ----");
 }
 
 static void trie_init(struct aggregator_proto *p);
@@ -1274,9 +1254,6 @@ aggregate_on_feed_end(struct channel *C)
 
   trie_init(p);
   run_aggregation(p);
-
-  p->before_count = 0;
-  p->after_count = 0;
 }
 
 /*
@@ -2082,9 +2059,6 @@ aggregator_cleanup(struct proto *P)
 
   p->root = NULL;
 
-  p->before_count = 0;
-  p->after_count = 0;
-
   p->bucket_list = NULL;
   p->bucket_list_size = 0;
   p->bucket_list_count = 0;
index 45dab298340d3e6a65d561131e33e665218dd8d1..69a0eb1bde5f3cebf3c0b20224d813ffd8fd84d4 100644 (file)
@@ -87,8 +87,6 @@ struct aggregator_proto {
   uint addr_type;
   linpool *trie_pool;
   struct trie_node *root;
-  int before_count;
-  int after_count;
   int logging;
 
   /* List of bucket pointers */