From: Matthew Fernandez Date: Thu, 13 Jan 2022 04:33:42 +0000 (-0800) Subject: remove unused 'pedge_realloc' X-Git-Tag: 3.0.0~69^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3b9720cfe67904ded94ff2284a514c2ca7c193ed;p=graphviz remove unused 'pedge_realloc' --- diff --git a/lib/mingle/edge_bundling.cpp b/lib/mingle/edge_bundling.cpp index 4004b64a7..dfc21eac4 100644 --- a/lib/mingle/edge_bundling.cpp +++ b/lib/mingle/edge_bundling.cpp @@ -392,13 +392,6 @@ static void pedge_print(char *comments, pedge e){ } #endif -pedge pedge_realloc(pedge e, int n){ - if (n <= e->npoints) return e; - e->x = (double*)REALLOC(e->x, e->dim*n*sizeof(double)); - if (e->wgts) e->wgts = (double*)REALLOC(e->wgts, (n-1)*sizeof(double)); - e->len = n; - return e; -} pedge pedge_wgts_realloc(pedge e, int n){ /* diff from pedge_alloc: allocate wgts if do not exist and initialize to wgt */ int i; diff --git a/lib/mingle/edge_bundling.h b/lib/mingle/edge_bundling.h index 19567b9d1..a9c817cac 100644 --- a/lib/mingle/edge_bundling.h +++ b/lib/mingle/edge_bundling.h @@ -30,7 +30,6 @@ typedef struct pedge_struct* pedge; pedge* edge_bundling(SparseMatrix A, int dim, double *x, int maxit_outer, double K, int method, int nneighbor, int compatibility_method, int max_recursion, double angle_param, double angle, int open_gl); void pedge_delete(pedge e); -pedge pedge_realloc(pedge e, int np); pedge pedge_wgts_realloc(pedge e, int n); void pedge_export_mma(FILE *fp, int ne, pedge *edges); void pedge_export_gv(FILE *fp, int ne, pedge *edges);