From: Matthew Fernandez Date: Fri, 8 Apr 2022 15:17:02 +0000 (-0700) Subject: mm2gv: remove unused 'mm_write_banner' X-Git-Tag: 4.0.0~115^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d9329bb3cd9b8cbea06ce9d593a1eefe8dd2b9c8;p=graphviz mm2gv: remove unused 'mm_write_banner' --- diff --git a/cmd/tools/mmio.c b/cmd/tools/mmio.c index 8c25e7223..effb523be 100644 --- a/cmd/tools/mmio.c +++ b/cmd/tools/mmio.c @@ -134,19 +134,6 @@ int mm_read_mtx_crd_size(FILE * f, int *M, int *N, int *nz) /*-------------------------------------------------------------------------*/ -int mm_write_banner(FILE * f, MM_typecode matcode) -{ - char *str = mm_typecode_to_str(matcode); - int ret_code; - - ret_code = fprintf(f, "%s %s\n", MatrixMarketBanner, str); - free(str); - if (ret_code != 2) - return MM_COULD_NOT_WRITE_FILE; - else - return 0; -} - char *mm_typecode_to_str(MM_typecode matcode) { char buffer[MM_MAX_LINE_LENGTH]; diff --git a/cmd/tools/mmio.h b/cmd/tools/mmio.h index a093d988b..cb915ec18 100644 --- a/cmd/tools/mmio.h +++ b/cmd/tools/mmio.h @@ -28,8 +28,6 @@ char *mm_typecode_to_str(MM_typecode matcode); int mm_read_banner(FILE * f, MM_typecode * matcode); int mm_read_mtx_crd_size(FILE * f, int *M, int *N, int *nz); -int mm_write_banner(FILE * f, MM_typecode matcode); - /********************* MM_typecode query fucntions ***************************/ #define mm_is_matrix(typecode) ((typecode)[0]=='M')