summaryrefslogtreecommitdiff
path: root/lib/command_graph.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/command_graph.c')
-rw-r--r--lib/command_graph.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/command_graph.c b/lib/command_graph.c
index 07cc306505..05570d5c73 100644
--- a/lib/command_graph.c
+++ b/lib/command_graph.c
@@ -13,14 +13,6 @@
struct graph_node *
add_node(struct graph_node *parent, struct graph_node *child)
{
- struct graph_node *p_child;
-
- for (unsigned int i = 0; i < vector_active(parent->children); i++)
- {
- p_child = vector_slot(parent->children, i);
- if (cmp_node(child, p_child))
- return p_child;
- }
vector_set(parent->children, child);
child->refs++;
return child;