From: Matthew Fernandez Date: Fri, 5 Jun 2020 23:58:25 +0000 (-0700) Subject: remove unused aggetuserptr function X-Git-Tag: 2.46.0~20^2^2~14^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=53266b860edb307766f9926f3ad40352282ff34d;p=graphviz remove unused aggetuserptr function --- diff --git a/lib/cgraph/obj.c b/lib/cgraph/obj.c index 709774e3d..71dfdefea 100644 --- a/lib/cgraph/obj.c +++ b/lib/cgraph/obj.c @@ -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;