]> granicus.if.org Git - graphviz/commitdiff
remove unused parameter from getPos
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 17 Jun 2021 00:53:55 +0000 (17:53 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 23 Jun 2021 00:06:12 +0000 (17:06 -0700)
lib/sfdpgen/sfdpinit.c

index a782a741a677b01a2d1dc9a214d080f81f380eef..8c2d18c671520f43eb622bb436967424c900c9d2 100644 (file)
@@ -57,7 +57,7 @@ static void sfdp_init_graph(Agraph_t * g)
 
 /* getPos:
  */
-static real *getPos(Agraph_t * g, spring_electrical_control ctrl)
+static real *getPos(Agraph_t * g)
 {
     Agnode_t *n;
     real *pos = N_NEW(Ndim * agnnodes(g), real);
@@ -102,7 +102,7 @@ static void sfdpLayout(graph_t * g, spring_electrical_control ctrl,
     }
     else
        sizes = NULL;
-    pos = getPos(g, ctrl);
+    pos = getPos(g);
 
     switch (ctrl->method) {
     case METHOD_SPRING_ELECTRICAL: