]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Remove delete_trie()
authorIgor Putovny <igor.putovny@nic.cz>
Tue, 4 Jun 2024 15:56:26 +0000 (17:56 +0200)
committerIgor Putovny <igor.putovny@nic.cz>
Tue, 4 Jun 2024 15:56:26 +0000 (17:56 +0200)
proto/aggregator/aggregator.c

index 307f872658c43e5ef920cef9279b6d41553856e4..b723a6c0a1211aaea0178d9b772994371e225fc3 100644 (file)
@@ -107,24 +107,6 @@ remove_node(struct trie_node *node)
   }
 }
 
-/*
- * Recursively free all trie nodes
- */
-static void
-delete_trie(struct trie_node *node)
-{
-  assert(node != NULL);
-
-  if (node->child[0])
-    delete_trie(node->child[0]);
-
-  if (node->child[1])
-    delete_trie(node->child[1]);
-
-  assert(is_leaf(node));
-  remove_node(node);
-}
-
 /*
  * Insert prefix in @addr to prefix trie with beginning at @root and assign @bucket to this prefix
  */