From: Matthew Fernandez Date: Tue, 12 Jul 2022 03:31:35 +0000 (-0700) Subject: circogen: remove unused 'node_position' X-Git-Tag: 5.0.1~40^2~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=25cb2373e4a0ce0e82e563c2b2b8290b7bdf3104;p=graphviz circogen: remove unused 'node_position' --- diff --git a/lib/circogen/nodelist.c b/lib/circogen/nodelist.c index b79a77090..b943e6d10 100644 --- a/lib/circogen/nodelist.c +++ b/lib/circogen/nodelist.c @@ -201,15 +201,6 @@ int sizeNodelist(nodelist_t * list) return list->sz; } -/* node_position: - * Returns index of node n in list, starting at 0. - * Returns -1 if not in list. - */ -int node_position(nodelist_t * list, Agnode_t * n) -{ - return POSITION(n); -} - /* concatNodelist: * attach l2 to l1. */ diff --git a/lib/circogen/nodelist.h b/lib/circogen/nodelist.h index c0f7dd242..4a8430750 100644 --- a/lib/circogen/nodelist.h +++ b/lib/circogen/nodelist.h @@ -39,7 +39,6 @@ extern "C" { /* extern void removeNodelist(nodelist_t* list, Agnode_t* n); */ /* extern int node_exists(nodelist_t* list, Agnode_t* n); */ /* extern int nodename_exists(nodelist_t* list, char* n); */ - extern int node_position(nodelist_t * list, Agnode_t * n); extern void realignNodelist(nodelist_t * list, nodelistitem_t * n); extern void insertNodelist(nodelist_t *, Agnode_t *, Agnode_t *, int);