]> granicus.if.org Git - graphviz/commitdiff
neatogen computeHierarchyBoundaries: remove unused 'n' parameter
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 23 Jul 2022 00:56:25 +0000 (17:56 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 28 Jul 2022 01:47:22 +0000 (18:47 -0700)
lib/neatogen/quad_prog_solve.c

index 233c939a2b0e2500ac1ab367597090aedba648a6..887da6bff7a2168f237a69d094d4995564ed5bf6 100644 (file)
@@ -96,7 +96,7 @@ ensureMonotonicOrderingWithGaps(float *place, int n, int *ordering,
 }
 
 static void
-computeHierarchyBoundaries(float *place, int n, int *ordering, int *levels,
+computeHierarchyBoundaries(float *place, int *ordering, int *levels,
                           int num_levels, float *hierarchy_boundaries)
 {
     int i;
@@ -376,7 +376,7 @@ constrained_majorization_new(CMajEnv * e, float *b, float **coords,
        }
     }
 
-    computeHierarchyBoundaries(place, n, ordering, levels, num_levels,
+    computeHierarchyBoundaries(place, ordering, levels, num_levels,
                               hierarchy_boundaries);
 
     return counter;
@@ -539,7 +539,7 @@ int constrained_majorization_gradient_projection(CMajEnv * e,
            if (test < tmptest)
                test = tmptest;
        }
-       computeHierarchyBoundaries(place, e->n, ordering, levels,
+       computeHierarchyBoundaries(place, ordering, levels,
                                   num_levels, hierarchy_boundaries);
 #ifdef CONMAJ_LOGGING
        double stress = 0;
@@ -892,7 +892,7 @@ constrained_majorization_new_with_gaps(CMajEnv * e, float *b,
            }
        }
        orthog1f(n, place);     /* for numerical stability, keep ||place|| small */
-       computeHierarchyBoundaries(place, n, ordering, levels, num_levels,
+       computeHierarchyBoundaries(place, ordering, levels, num_levels,
                                   hierarchy_boundaries);
     }