From d9329bb3cd9b8cbea06ce9d593a1eefe8dd2b9c8 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Fri, 8 Apr 2022 08:17:02 -0700 Subject: [PATCH] mm2gv: remove unused 'mm_write_banner' --- cmd/tools/mmio.c | 13 ------------- cmd/tools/mmio.h | 2 -- 2 files changed, 15 deletions(-) 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') -- 2.50.1