From: Matthew Fernandez Date: Wed, 18 Jan 2023 16:38:39 +0000 (-0800) Subject: neatogen: make 'overlap_scaling' static X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=103ae62fc54fb47bc25ae1283d8916d25b93c61b;p=graphviz neatogen: make 'overlap_scaling' static This function is unused outside of its containing file. --- diff --git a/lib/neatogen/overlap.c b/lib/neatogen/overlap.c index 242b1ef79..ac48d3011 100644 --- a/lib/neatogen/overlap.c +++ b/lib/neatogen/overlap.c @@ -288,7 +288,9 @@ static void scale_coord(int dim, int m, double *x, double scale){ } } -double overlap_scaling(int dim, int m, double *x, double *width, double scale_sta, double scale_sto, double epsilon, int maxiter){ +static double overlap_scaling(int dim, int m, double *x, double *width, + double scale_sta, double scale_sto, + double epsilon, int maxiter) { /* do a bisection between scale_sta and scale_sto, up to maxiter iterations or till interval <= epsilon, to find the best scaling to avoid overlap m: number of points x: the coordinates diff --git a/lib/neatogen/overlap.h b/lib/neatogen/overlap.h index e23e2c891..1bbd08c08 100644 --- a/lib/neatogen/overlap.h +++ b/lib/neatogen/overlap.h @@ -50,4 +50,3 @@ double OverlapSmoother_smooth(OverlapSmoother sm, int dim, double *x); void remove_overlap(int dim, SparseMatrix A, double *x, double *label_sizes, int ntry, double initial_scaling, int edge_labeling_scheme, int n_constr_nodes, int *constr_nodes, SparseMatrix A_constr, int doShrink); -double overlap_scaling(int dim, int m, double *x, double *width, double scale_sta, double scale_sto, double epsilon, int maxiter);