]> granicus.if.org Git - graphviz/commitdiff
mm2gv: remove unused 'mm_read_mtx_crd_entry'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 8 Apr 2022 15:03:01 +0000 (08:03 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 11 Apr 2022 02:54:35 +0000 (19:54 -0700)
cmd/tools/mmio.c
cmd/tools/mmio.h

index 528363d8b2ef5a04d370507b13f4122a2c95cb17..f4b3984193d91289db681ea34d59978d77817ac3 100644 (file)
@@ -231,30 +231,6 @@ int mm_read_mtx_crd_data(FILE * f, int M, int N, int nz, int I[], int J[],
 
 }
 
-int mm_read_mtx_crd_entry(FILE * f, int *I, int *J,
-                         double *real, double *imag, MM_typecode matcode)
-{
-    if (mm_is_complex(matcode)) {
-       if (fscanf(f, "%d %d %lg %lg", I, J, real, imag)
-           != 4)
-           return MM_PREMATURE_EOF;
-    } else if (mm_is_real(matcode)) {
-       if (fscanf(f, "%d %d %lg\n", I, J, real)
-           != 3)
-           return MM_PREMATURE_EOF;
-
-    }
-
-    else if (mm_is_pattern(matcode)) {
-       if (fscanf(f, "%d %d", I, J) != 2)
-           return MM_PREMATURE_EOF;
-    } else
-       return MM_UNSUPPORTED_TYPE;
-
-    return 0;
-
-}
-
 int mm_write_banner(FILE * f, MM_typecode matcode)
 {
     char *str = mm_typecode_to_str(matcode);
index a60e7dded67fd275cf710a48ab20a0fce6f66571..255144c7885582e5ad8b8293d1a43bf4014d21fb 100644 (file)
@@ -130,5 +130,3 @@ int mm_write_mtx_crd(char fname[], int M, int N, int nz, int I[], int J[],
                     double val[], MM_typecode matcode);
 int mm_read_mtx_crd_data(FILE * f, int M, int N, int nz, int I[], int J[],
                         double val[], MM_typecode matcode);
-int mm_read_mtx_crd_entry(FILE * f, int *I, int *J, double *realpart,
-                         double *img, MM_typecode matcode);