From: Matthew Fernandez Date: Thu, 29 Dec 2022 19:14:03 +0000 (-0800) Subject: neatogen fdpAdjust: remove unused return value X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5f5ca630f3905605bc25461865ad0ed4ae9ed5c7;p=graphviz neatogen fdpAdjust: remove unused return value --- diff --git a/lib/neatogen/adjust.c b/lib/neatogen/adjust.c index 08c9d1863..276547333 100644 --- a/lib/neatogen/adjust.c +++ b/lib/neatogen/adjust.c @@ -696,15 +696,13 @@ SparseMatrix makeMatrix(Agraph_t* g, SparseMatrix *D) } #if ((defined(HAVE_GTS) || defined(HAVE_TRIANGLE)) && defined(SFDP)) -static int -fdpAdjust (graph_t* g, adjust_data* am) -{ +static void fdpAdjust(graph_t *g, adjust_data *am) { SparseMatrix A0 = makeMatrix(g, NULL); SparseMatrix A = A0; double *sizes; double *pos = gv_calloc(Ndim * agnnodes(g), sizeof(double)); Agnode_t *n; - int flag = 0, i; + int i; expand_t sep = sepFactor(g); pointf pad; @@ -746,8 +744,6 @@ fdpAdjust (graph_t* g, adjust_data* am) if (A != A0) SparseMatrix_delete(A); SparseMatrix_delete (A0); - - return flag; } #endif @@ -1088,7 +1084,8 @@ removeOverlapWith (graph_t * G, adjust_data* am) break; #if ((defined(HAVE_GTS) || defined(HAVE_TRIANGLE)) && defined(SFDP)) case AM_PRISM: - ret = fdpAdjust(G, am); + fdpAdjust(G, am); + ret = 0; break; #endif #ifdef IPSEPCOLA