]> granicus.if.org Git - graphviz/commitdiff
remove unused SparseMatrix_export_binary
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 22 May 2021 01:15:10 +0000 (18:15 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 28 May 2021 04:07:28 +0000 (21:07 -0700)
lib/sparse/SparseMatrix.c
lib/sparse/SparseMatrix.h

index 850afeedf0ad026d944a48ff2ae80c6ff305e99c..9fc08f986619ccb177ece310b19c4a03d0f9a104 100644 (file)
@@ -638,22 +638,6 @@ void SparseMatrix_export_binary_fp(FILE *f, SparseMatrix A){
 
 }
 
-void SparseMatrix_export_binary(char *name, SparseMatrix A, int *flag){
-  FILE *f;
-
-  *flag = 0;
-  f = fopen(name, "wb");
-  if (!f) {
-    *flag = 1;
-    return;
-  }
-  SparseMatrix_export_binary_fp(f, A);
-  fclose(f);
-
-}
-
-
-
 SparseMatrix SparseMatrix_import_binary_fp(FILE *f){
   SparseMatrix A = NULL;
   int m, n, nz, nzmax, type, format, property;
index 2cead463c69cd5fb57f9dec42a4383c87f355b66..08c0e840199370b505fa5376eef4e7b6e9877488 100644 (file)
@@ -59,7 +59,6 @@ void SparseMatrix_export(FILE *f, SparseMatrix A);/* export into MM format excep
 SparseMatrix SparseMatrix_import_binary(char *name);
 SparseMatrix SparseMatrix_import_binary_fp(FILE *f);/* import into a preopenned file */
 
-void SparseMatrix_export_binary(char *name, SparseMatrix A, int *flag);
 void SparseMatrix_export_binary_fp(FILE *f, SparseMatrix A);/* export binary into a file preopened */
 
 void SparseMatrix_delete(SparseMatrix A);