summaryrefslogtreecommitdiff
path: root/lib/command_graph.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2016-08-04 00:58:12 +0000
committerQuentin Young <qlyoung@cumulusnetworks.com>2016-08-04 00:58:12 +0000
commitf4b0c72e5313927b3a2ddaf02d148992914474a3 (patch)
tree7aeb0d33f3c636463671531475f7066e8045ef39 /lib/command_graph.c
parent8aeffd7ae1aac2552f67aa8b2c7708b4d41c4d55 (diff)
lib: Refactor format parser
Also fix a bug where selector elements beginning with the same word are only parsed once Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
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;