From 449ea544aef39b30112430659542d3526860d2e6 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Mon, 22 Mar 2021 19:29:51 -0700 Subject: [PATCH] remove unused kkutils.h C++ alternative This code is unused and in fact many of these prototyped functions are unimplemented. --- lib/neatogen/kkutils.h | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/lib/neatogen/kkutils.h b/lib/neatogen/kkutils.h index 9f7854ed1..9f64257d2 100644 --- a/lib/neatogen/kkutils.h +++ b/lib/neatogen/kkutils.h @@ -19,24 +19,6 @@ extern "C" { #include -#ifdef __cplusplus - - inline double distance_kD(double **coords, int dim, int i, int j) { - /* compute a k-D Euclidean distance between 'coords[*][i]' and 'coords[*][j]' */ - double sum = 0; - for (int k = 0; k < dim; k++) { - sum += - (coords[k][i] - coords[k][j]) * (coords[k][i] - - coords[k][j]); - } return sqrt(sum); - } - void compute_apsp(vtx_data * graph, int n, DistType ** (&Dij)); - void compute_apsp_artifical_weights(vtx_data * graph, int n, - DistType ** (&Dij)); - - void quicksort_place(double *place, int *ordering, int first, int last); - void free_graph(vtx_data * (&graph)); -#else extern void fill_neighbors_vec_unweighted(vtx_data *, int vtx, int *vtx_vec); extern int common_neighbors(vtx_data *, int v, int u, int *); @@ -50,7 +32,6 @@ extern "C" { extern void compute_new_weights(vtx_data * graph, int n); extern void restore_old_weights(vtx_data * graph, int n, float *old_weights); -#endif #endif -- 2.40.0