]> granicus.if.org Git - graphviz/commitdiff
remove unused aggetuserptr function
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 5 Jun 2020 23:58:25 +0000 (16:58 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 27 Jun 2020 00:19:35 +0000 (17:19 -0700)
lib/cgraph/obj.c

index 709774e3db42e9069d17b90f855390b19ae8beb2..71dfdefeaa326cfc72509332156fbb66fe988604 100644 (file)
@@ -234,16 +234,6 @@ int agpopdisc(Agraph_t * g, Agcbdisc_t * cbd)
     return FAILURE;
 }
 
-void *aggetuserptr(Agraph_t * g, Agcbdisc_t * cbd)
-{
-    Agcbstack_t *stack_ent;
-
-    for (stack_ent = g->clos->cb; stack_ent; stack_ent = stack_ent->prev)
-       if (stack_ent->f == cbd)
-           return stack_ent->state;
-    return NIL(void *);
-}
-
 int agcontains(Agraph_t* g, void* obj)
 {
     Agraph_t* subg;