0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-08 12:18:42 +00:00

Remove delete_trie()

This commit is contained in:
Igor Putovny 2024-06-04 17:56:26 +02:00
parent 67350540fb
commit 4d0939f745

View 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
*/