From: Matthew Fernandez Date: Sat, 12 Mar 2022 03:54:20 +0000 (-0800) Subject: mkMaze: remove unused 'doLbls' parameter X-Git-Tag: 4.0.0~176^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=60a36c155c85ee889fa30045936266ce32649014;p=graphviz mkMaze: remove unused 'doLbls' parameter --- diff --git a/lib/ortho/maze.c b/lib/ortho/maze.c index fef49dde9..59bf7c459 100644 --- a/lib/ortho/maze.c +++ b/lib/ortho/maze.c @@ -443,9 +443,7 @@ chkSgraph (g); /* mkMaze: */ -maze* -mkMaze (graph_t* g, int doLbls) -{ +maze *mkMaze(graph_t *g) { node_t* n; maze* mp = NEW(maze); boxf* rects; @@ -454,9 +452,6 @@ mkMaze (graph_t* g, int doLbls) double w2, h2; boxf bb, BB; - // unused - (void)doLbls; - mp->ngcells = agnnodes(g); cp = mp->gcells = N_NEW(mp->ngcells, cell); diff --git a/lib/ortho/maze.h b/lib/ortho/maze.h index 81d18292a..ece0f2aa0 100644 --- a/lib/ortho/maze.h +++ b/lib/ortho/maze.h @@ -49,7 +49,7 @@ typedef struct { Dt_t* vchans; } maze; -extern maze* mkMaze (graph_t*, int); +extern maze* mkMaze(graph_t*); extern void freeMaze (maze*); void updateWts (sgraph* g, cell* cp, sedge* ep); #ifdef DEBUG diff --git a/lib/ortho/ortho.c b/lib/ortho/ortho.c index 4d4e71daa..0a0d923d6 100644 --- a/lib/ortho/ortho.c +++ b/lib/ortho/ortho.c @@ -1294,7 +1294,7 @@ orthoEdges (Agraph_t* g, int doLbls) agerr(AGWARN, "Orthogonal edges do not currently handle edge labels. Try using xlabels.\n"); doLbls = 0; } - mp = mkMaze (g, doLbls); + mp = mkMaze(g); sg = mp->sg; #ifdef DEBUG if (odb_flags & ODB_SGRAPH) emitSearchGraph (stderr, sg);