]> granicus.if.org Git - graphviz/commitdiff
sfdpgen post_process_smoothing: remove 'flag' that is always set to 0
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 28 Nov 2022 00:46:54 +0000 (16:46 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 30 Nov 2022 02:07:38 +0000 (18:07 -0800)
lib/sfdpgen/post_process.c
lib/sfdpgen/post_process.h
lib/sfdpgen/spring_electrical.c

index 0b0832337ac0763f4cc0da8d7073f426c300fe6c..16cd40921c7d81df9b7849240d991ebfaf850184 100644 (file)
@@ -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:
index 6c4f7a5d5fa58e572fa1c4dbd6923881a026dda9..4294386649cbe3ef993a973420c2b20549101788 100644 (file)
@@ -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;
index b6e9ac1baf0a5d074b5a85f6964f9f1cfe4e3527..321ac0b6a75b99b634cf12e16ac6b910ed415726 100644 (file)
@@ -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);