From: Matthew Fernandez Date: Sat, 23 Jul 2022 15:27:30 +0000 (-0700) Subject: sfdpgen stress_model: remove unused 'A' parameter X-Git-Tag: 5.0.1~27^2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b8e0d5f8516e3f038d2b5f351333a3d9f88c469b;p=graphviz sfdpgen stress_model: remove unused 'A' parameter --- diff --git a/cmd/gvmap/make_map.c b/cmd/gvmap/make_map.c index 8e1c30358..dec68d7e5 100644 --- a/cmd/gvmap/make_map.c +++ b/cmd/gvmap/make_map.c @@ -144,7 +144,7 @@ void improve_contiguity(int n, int dim, int *grouping, SparseMatrix poly_point_m } if (Verbose) fprintf(stderr,"ratio (edges among discontiguous regions vs total edges)=%f\n",((double) nbad)/ia[n]); - stress_model(dim, D, D, &x, FALSE, maxit, tol, &flag); + stress_model(dim, D, &x, FALSE, maxit, tol, &flag); assert(!flag); diff --git a/lib/sfdpgen/sfdpinit.c b/lib/sfdpgen/sfdpinit.c index 73c8348b3..250398619 100644 --- a/lib/sfdpgen/sfdpinit.c +++ b/lib/sfdpgen/sfdpinit.c @@ -136,7 +136,7 @@ static void sfdpLayout(graph_t * g, spring_electrical_control ctrl, D = DD; } - stress_model(Ndim, A, D, &pos, TRUE, maxit, tol, &flag); + stress_model(Ndim, D, &pos, TRUE, maxit, tol, &flag); } break; } diff --git a/lib/sfdpgen/stress_model.c b/lib/sfdpgen/stress_model.c index f7c978255..d5fd06d5f 100644 --- a/lib/sfdpgen/stress_model.c +++ b/lib/sfdpgen/stress_model.c @@ -54,6 +54,6 @@ static void stress_model_core(int dim, SparseMatrix B, double **x, int edge_len_ if (A != B) SparseMatrix_delete(A); } -void stress_model(int dim, SparseMatrix A, SparseMatrix D, double **x, int edge_len_weighted, int maxit_sm, double tol, int *flag){ +void stress_model(int dim, SparseMatrix D, double **x, int edge_len_weighted, int maxit_sm, double tol, int *flag){ stress_model_core(dim, D, x, edge_len_weighted, maxit_sm, tol, flag); } diff --git a/lib/sfdpgen/stress_model.h b/lib/sfdpgen/stress_model.h index add265102..5997b33f3 100644 --- a/lib/sfdpgen/stress_model.h +++ b/lib/sfdpgen/stress_model.h @@ -1,3 +1,3 @@ #pragma once -void stress_model(int dim, SparseMatrix A, SparseMatrix D, double **x, int edge_len_weighted, int maxit, double tol, int *flag); +void stress_model(int dim, SparseMatrix D, double **x, int edge_len_weighted, int maxit, double tol, int *flag);