From: Matthew Fernandez Date: Sat, 23 Jul 2022 01:16:47 +0000 (-0700) Subject: neatogen call_tri: remove unused 'dim' parameter X-Git-Tag: 5.0.1~28^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a9930f22581360b92f1c34ed2deda5dfef090665;p=graphviz neatogen call_tri: remove unused 'dim' parameter --- diff --git a/lib/neatogen/call_tri.c b/lib/neatogen/call_tri.c index 3aee8ba0b..b6effec1c 100644 --- a/lib/neatogen/call_tri.c +++ b/lib/neatogen/call_tri.c @@ -16,8 +16,7 @@ #include #include -SparseMatrix call_tri(int n, int dim, double * x) -{ +SparseMatrix call_tri(int n, double *x) { double one = 1; int i, ii, jj; SparseMatrix A; diff --git a/lib/neatogen/call_tri.h b/lib/neatogen/call_tri.h index c6aaaeff5..996c6306d 100644 --- a/lib/neatogen/call_tri.h +++ b/lib/neatogen/call_tri.h @@ -10,5 +10,5 @@ #pragma once -SparseMatrix call_tri(int n, int dim, double * x); +SparseMatrix call_tri(int n, double * x); SparseMatrix call_tri2(int n, int dim, double * x); diff --git a/lib/neatogen/overlap.c b/lib/neatogen/overlap.c index 45999ee70..a4a56e000 100644 --- a/lib/neatogen/overlap.c +++ b/lib/neatogen/overlap.c @@ -390,7 +390,7 @@ OverlapSmoother OverlapSmoother_new(SparseMatrix A, int m, lambda = sm->lambda = N_GNEW(m,double); for (i = 0; i < m; i++) sm->lambda[i] = lambda0; - B= call_tri(m, dim, x); + B= call_tri(m, x); if (!neighborhood_only){ SparseMatrix C, D; diff --git a/lib/sfdpgen/post_process.c b/lib/sfdpgen/post_process.c index bba858e3a..d74123899 100644 --- a/lib/sfdpgen/post_process.c +++ b/lib/sfdpgen/post_process.c @@ -792,7 +792,7 @@ TriangleSmoother TriangleSmoother_new(SparseMatrix A, int dim, double lambda0, d if (m > 2){ if (use_triangularization){ - B= call_tri(m, dim, x); + B= call_tri(m, x); } else { B= call_tri2(m, dim, x); }