From: Matthew Fernandez Date: Fri, 8 Apr 2022 15:07:45 +0000 (-0700) Subject: mm2gv: remove unused 'mm_write_mtx_crd_size' X-Git-Tag: 4.0.0~115^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c9f92ac6914f3b30d3f4531a85c3df904959c45f;p=graphviz mm2gv: remove unused 'mm_write_mtx_crd_size' --- diff --git a/cmd/tools/mmio.c b/cmd/tools/mmio.c index 8cdc5506f..0e66cdc9f 100644 --- a/cmd/tools/mmio.c +++ b/cmd/tools/mmio.c @@ -103,14 +103,6 @@ int mm_read_banner(FILE * f, MM_typecode * matcode) return 0; } -int mm_write_mtx_crd_size(FILE * f, int M, int N, int nz) -{ - if (fprintf(f, "%d %d %d\n", M, N, nz) != 3) - return MM_COULD_NOT_WRITE_FILE; - else - return 0; -} - int mm_read_mtx_crd_size(FILE * f, int *M, int *N, int *nz) { char line[MM_MAX_LINE_LENGTH]; diff --git a/cmd/tools/mmio.h b/cmd/tools/mmio.h index 454a441a3..6b72d78f7 100644 --- a/cmd/tools/mmio.h +++ b/cmd/tools/mmio.h @@ -30,7 +30,6 @@ int mm_read_mtx_crd_size(FILE * f, int *M, int *N, int *nz); int mm_read_mtx_array_size(FILE * f, int *M, int *N); int mm_write_banner(FILE * f, MM_typecode matcode); -int mm_write_mtx_crd_size(FILE * f, int M, int N, int nz); /********************* MM_typecode query fucntions ***************************/