]> granicus.if.org Git - graphviz/commitdiff
remove unused cp parameter from updateWt
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 27 Mar 2021 15:57:00 +0000 (08:57 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 3 Apr 2021 01:21:35 +0000 (18:21 -0700)
lib/ortho/maze.c

index ced6c22a12e7c87ce12f491214990e186cec8975..1a47ed4ae161681460fddee2d45eb138e2c91468 100644 (file)
@@ -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));
     }
 }