From: Matthew Fernandez Date: Mon, 28 Nov 2022 00:46:54 +0000 (-0800) Subject: sfdpgen post_process_smoothing: remove 'flag' that is always set to 0 X-Git-Tag: 7.0.4~3^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4154b810dd65c7d4f283d236845721f32caf44a9;p=graphviz sfdpgen post_process_smoothing: remove 'flag' that is always set to 0 --- diff --git a/lib/sfdpgen/post_process.c b/lib/sfdpgen/post_process.c index 0b0832337..16cd40921 100644 --- a/lib/sfdpgen/post_process.c +++ b/lib/sfdpgen/post_process.c @@ -984,7 +984,7 @@ void SpringSmoother_smooth(SpringSmoother sm, SparseMatrix A, int dim, double *x /*=============================== end of spring and spring-electrical based smoother =========== */ -void post_process_smoothing(int dim, SparseMatrix A, spring_electrical_control ctrl, double *x, int *flag){ +void post_process_smoothing(int dim, SparseMatrix A, spring_electrical_control ctrl, double *x) { #ifdef TIME clock_t cpu; #endif @@ -992,7 +992,6 @@ void post_process_smoothing(int dim, SparseMatrix A, spring_electrical_control c #ifdef TIME cpu = clock(); #endif - *flag = 0; switch (ctrl->smoothing){ case SMOOTHING_RNG: diff --git a/lib/sfdpgen/post_process.h b/lib/sfdpgen/post_process.h index 6c4f7a5d5..429438664 100644 --- a/lib/sfdpgen/post_process.h +++ b/lib/sfdpgen/post_process.h @@ -66,7 +66,7 @@ void SpringSmoother_delete(SpringSmoother sm); void SpringSmoother_smooth(SpringSmoother sm, SparseMatrix A, int dim, double *x); /*------------------------------------------------------------------*/ -void post_process_smoothing(int dim, SparseMatrix A, spring_electrical_control ctrl, double *x, int *flag); +void post_process_smoothing(int dim, SparseMatrix A, spring_electrical_control ctrl, double *x); /*-------------------- sparse stress majorizationp ------------------- */ typedef StressMajorizationSmoother SparseStressMajorizationSmoother; diff --git a/lib/sfdpgen/spring_electrical.c b/lib/sfdpgen/spring_electrical.c index b6e9ac1ba..321ac0b6a 100644 --- a/lib/sfdpgen/spring_electrical.c +++ b/lib/sfdpgen/spring_electrical.c @@ -1920,7 +1920,7 @@ static void multilevel_spring_electrical_embedding_core(int dim, SparseMatrix A0 cpu = clock(); #endif - post_process_smoothing(dim, A, ctrl, x, flag); + post_process_smoothing(dim, A, ctrl, x); if (Verbose) fprintf(stderr, "ctrl->overlap=%d\n",ctrl->overlap);