From: Matthew Fernandez Date: Sat, 22 May 2021 01:15:10 +0000 (-0700) Subject: remove unused SparseMatrix_export_binary X-Git-Tag: 2.47.3~27^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ba91ee69ef2400dfbbcef8aa0a36f317501be346;p=graphviz remove unused SparseMatrix_export_binary --- diff --git a/lib/sparse/SparseMatrix.c b/lib/sparse/SparseMatrix.c index 850afeedf..9fc08f986 100644 --- a/lib/sparse/SparseMatrix.c +++ b/lib/sparse/SparseMatrix.c @@ -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; diff --git a/lib/sparse/SparseMatrix.h b/lib/sparse/SparseMatrix.h index 2cead463c..08c0e8401 100644 --- a/lib/sparse/SparseMatrix.h +++ b/lib/sparse/SparseMatrix.h @@ -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);