From: Matthew Fernandez Date: Sat, 23 Jul 2022 15:34:37 +0000 (-0700) Subject: sfdpgen: make 'UniformStressSmoother_new' a static function X-Git-Tag: 5.0.1~27^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d9a8f1ff937e6a76ed403adbfcd6edde2a26aad1;p=graphviz sfdpgen: make 'UniformStressSmoother_new' a static function This function is not used outside of its containing file. --- diff --git a/lib/sfdpgen/uniform_stress.c b/lib/sfdpgen/uniform_stress.c index 3ef8b2131..3777db9d0 100644 --- a/lib/sfdpgen/uniform_stress.c +++ b/lib/sfdpgen/uniform_stress.c @@ -26,7 +26,8 @@ This is somewhat similar to the binary stress model */ -UniformStressSmoother UniformStressSmoother_new(SparseMatrix A, double alpha, double M){ +static UniformStressSmoother UniformStressSmoother_new(SparseMatrix A, + double alpha, double M) { UniformStressSmoother sm; int i, j, k, m = A->m, *ia = A->ia, *ja = A->ja, *iw, *jw, *id, *jd; int nz; diff --git a/lib/sfdpgen/uniform_stress.h b/lib/sfdpgen/uniform_stress.h index 4600ed65c..658a539f1 100644 --- a/lib/sfdpgen/uniform_stress.h +++ b/lib/sfdpgen/uniform_stress.h @@ -18,6 +18,4 @@ typedef StressMajorizationSmoother UniformStressSmoother; void UniformStressSmoother_delete(UniformStressSmoother sm); -UniformStressSmoother UniformStressSmoother_new(SparseMatrix A, double alpha, double M); - void uniform_stress(int dim, SparseMatrix A, double *x, int *flag);