From 01b49dd5592425b873e2af3a9dc7abe0b5c7490d Mon Sep 17 00:00:00 2001 From: Matthew Fernandez <matthew.fernandez@gmail.com> Date: Sat, 27 Mar 2021 08:57:00 -0700 Subject: [PATCH] remove unused cp parameter from updateWt --- lib/ortho/maze.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ortho/maze.c b/lib/ortho/maze.c index ced6c22a1..1a47ed4ae 100644 --- a/lib/ortho/maze.c +++ b/lib/ortho/maze.c @@ -151,7 +151,7 @@ static Dtdisc_t hdictDisc = { * thinner the channel, the faster the weight rises. */ static void -updateWt (cell* cp, sedge* ep, int sz) +updateWt (sedge* ep, int sz) { ep->cnt++; if (ep->cnt > sz) { @@ -180,12 +180,12 @@ updateWts (sgraph* g, cell* cp, sedge* ep) for (i = 0; i < cp->nedges; i++) { e = cp->edges[i]; if (!BEND(g,e)) break; - updateWt (cp, e, minsz); + updateWt (e, minsz); } for (; i < cp->nedges; i++) { e = cp->edges[i]; - if (isBend || (e == ep)) updateWt (cp, e, (HORZ(g,e)?hsz:vsz)); + if (isBend || (e == ep)) updateWt (e, (HORZ(g,e)?hsz:vsz)); } } -- 2.40.0