From 4b16e14c465762eaf6d937fb6f445e059fbcb769 Mon Sep 17 00:00:00 2001 From: Emden Gansner Date: Wed, 26 Oct 2011 11:49:01 -0400 Subject: [PATCH] Remove unused and incorrect subgraph code --- lib/dotgen/rank.c | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/lib/dotgen/rank.c b/lib/dotgen/rank.c index 2fa21e41f..8dac64714 100644 --- a/lib/dotgen/rank.c +++ b/lib/dotgen/rank.c @@ -701,40 +701,6 @@ collapse_leaves(graph_t * g) extern int rank2(Agraph_t *, int, int, int); -#if 0 -static edge_t *me; -static graph_t *agfstsubg(graph_t * g) -{ - graph_t *mg; - node_t *mn; - - mn = agmetanode(g); - mg = mn->graph; - me = agfstout(mg, mn); - if (me) - return agusergraph(me->head); - return 0; -} - -static graph_t *agnxtsubg(graph_t * g, graph_t * sub) -{ - graph_t *mg; - node_t *tmn; - node_t *hmn; - - tmn = agmetanode(g); - hmn = agmetanode(sub); - mg = tmn->graph; - if ((!me) || (me->tail != tmn) || (me->head != hmn)) - me = agfindedge(mg, tmn, hmn); - if (me) - me = agnxtout(mg, me); - if (me) - return agusergraph(me->head); - return 0; -} -#endif - static void set_parent(graph_t* g, graph_t* p) { GD_parent(g) = p; -- 2.40.0