From 25cb2373e4a0ce0e82e563c2b2b8290b7bdf3104 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Mon, 11 Jul 2022 20:31:35 -0700 Subject: [PATCH] circogen: remove unused 'node_position' --- lib/circogen/nodelist.c | 9 --------- lib/circogen/nodelist.h | 1 - 2 files changed, 10 deletions(-) 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); -- 2.40.0