From c2d83838bd95a565e2e5863681a7e1c83cf686ea Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 19 Jun 2021 14:01:28 -0700 Subject: [PATCH] remove unused dump_coordinates --- lib/sparse/DotIO.c | 25 ------------------------- lib/sparse/DotIO.h | 1 - 2 files changed, 26 deletions(-) diff --git a/lib/sparse/DotIO.c b/lib/sparse/DotIO.c index 0a6eaed6f..382191496 100644 --- a/lib/sparse/DotIO.c +++ b/lib/sparse/DotIO.c @@ -310,31 +310,6 @@ int Import_dot_splines(Agraph_t* g, int *ne, char ***xsplines){ return 1; } -void dump_coordinates(char *name, int n, int dim, real *x){ - char fn[1000]; - FILE *fp; - int i, k; - - if (!name){ - name = ""; - } else { - name = strip_dir(name); - } - - strcpy(fn, name); - strcat(fn,".x"); - fp = fopen(fn,"w"); - fprintf(fp, "%d %d\n",n, dim); - for (i = 0; i < n; i++){ - for (k = 0; k < dim; k++){ - fprintf(fp,"%f ",x[i*dim+k]); - } - fprintf(fp,"\n"); - } - fclose(fp); - -} - static int hex2int(char h){ if (h >= '0' && h <= '9') return h - '0'; if (h >= 'a' && h <= 'f') return 10 + h - 'a'; diff --git a/lib/sparse/DotIO.h b/lib/sparse/DotIO.h index d057127d4..d4442000c 100644 --- a/lib/sparse/DotIO.h +++ b/lib/sparse/DotIO.h @@ -24,7 +24,6 @@ extern void attach_edge_colors(Agraph_t* g, int dim, real *colors); extern SparseMatrix SparseMatrix_import_dot(Agraph_t* g, int dim, real **label_sizes, real **x, int *n_edge_label_nodes, int **edge_label_nodes, int format, SparseMatrix *D); -void dump_coordinates(char *name, int n, int dim, real *x); char * hue2rgb(real hue, char *color); SparseMatrix Import_coord_clusters_from_dot(Agraph_t* g, int maxcluster, int dim, int *nn, real **label_sizes, real **x, int **clusters, float **rgb_r, float **rgb_g, float **rgb_b, float **fsz, char ***labels, int default_color_scheme, int clustering_scheme, int useClusters); -- 2.40.0