]> granicus.if.org Git - graphviz/commitdiff
sfdpgen: [nfc] remove DistanceMatrix_restrict_cluster no-op
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 10 Feb 2022 04:43:11 +0000 (15:43 +1100)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 10 Feb 2022 04:43:11 +0000 (15:43 +1100)
lib/sfdpgen/Multilevel.c

index 13d97125b6d44ffbb58ec20b9d7ec94f513729c0..da9b6e71bd15c63a390333af9e0bfc3170a58edf 100644 (file)
@@ -815,10 +815,6 @@ static void maximal_independent_edge_set_heavest_edge_pernode_scaled(SparseMatri
   }
 }
 
-static SparseMatrix DistanceMatrix_restrict_cluster(int ncluster, int *clusterp, int *cluster, SparseMatrix P, SparseMatrix R, SparseMatrix D){
-  return NULL;
-}
-
 static SparseMatrix DistanceMatrix_restrict_matching(int *matching, SparseMatrix D){
   if (!D) return NULL;
   assert(0);/* not yet implemented! */
@@ -934,7 +930,7 @@ static void Multilevel_coarsen_internal(SparseMatrix A, SparseMatrix *cA, Sparse
                                              MATRIX_TYPE_REAL, sizeof(double));
     *R = SparseMatrix_transpose(*P);
 
-    *cD = DistanceMatrix_restrict_cluster(ncluster, clusterp, cluster, *P, *R, D);
+    *cD = NULL;
 
     *cA = SparseMatrix_multiply3(*R, A, *P);