From 0daf4ebdd58bed286f03bb397ce35ed72f40af7c Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 17 Jul 2022 15:43:31 -0700 Subject: [PATCH] dotgen cloneNode: remove unused 'flipped' parameter --- lib/dotgen/dotsplines.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/lib/dotgen/dotsplines.c b/lib/dotgen/dotsplines.c index 5e5a43a2b..3090646b9 100644 --- a/lib/dotgen/dotsplines.c +++ b/lib/dotgen/dotsplines.c @@ -942,13 +942,10 @@ cleanupCloneGraph (graph_t* g, attr_state_t* attr_state) } /* cloneNode: - * If flipped is true, original graph has rankdir=LR or RL. - * In this case, records change shape, so we wrap a record node's - * label in "{...}" to prevent this. + * If original graph has rankdir=LR or RL, records change shape, + * so we wrap a record node's label in "{...}" to prevent this. */ -static node_t* -cloneNode (graph_t* g, node_t* orign, int flipped) -{ +static node_t *cloneNode(graph_t *g, node_t *orign) { node_t* n = agnode(g, agnameof(orign),1); agbindrec(n, "Agnodeinfo_t", sizeof(Agnodeinfo_t), true); agcopyattr (orign, n); @@ -1298,8 +1295,8 @@ make_flat_adj_edges(graph_t* g, path* P, edge_t** edges, int ind, int cnt, edge_ tn = hn; hn = n; } - auxt = cloneNode(subg, tn, GD_flip(g)); - auxh = cloneNode(auxg, hn, GD_flip(g)); + auxt = cloneNode(subg, tn); + auxh = cloneNode(auxg, hn); for (i = 0; i < cnt; i++) { e = edges[ind + i]; for (; ED_edge_type(e) != NORMAL; e = ED_to_orig(e)); -- 2.40.0