]> granicus.if.org Git - graphviz/commitdiff
remove unused dump_coordinates
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 19 Jun 2021 21:01:28 +0000 (14:01 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 26 Jun 2021 02:28:08 +0000 (19:28 -0700)
lib/sparse/DotIO.c
lib/sparse/DotIO.h

index 0a6eaed6fd3375727638edd440a950217542a7b1..382191496d22d9e0bb2cdd97bd7a43e306c7cbbf 100644 (file)
@@ -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';
index d057127d41918727155bb6f9266c7dc2a5170d76..d4442000c0836a0eb8f82262ddb56d68446766c1 100644 (file)
@@ -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);