From 888f84e1ee7cc65d822fa8e84e02743d529a9c12 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Thu, 30 Nov 2023 18:54:54 +0000 Subject: cleanup git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4795 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- converter/other/tifftopnm.c | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'converter/other/tifftopnm.c') diff --git a/converter/other/tifftopnm.c b/converter/other/tifftopnm.c index e8f076a4..44b3461b 100644 --- a/converter/other/tifftopnm.c +++ b/converter/other/tifftopnm.c @@ -714,23 +714,6 @@ analyzeImageType(TIFF * const tiffP, -static void -reportOutputFormat(int const format) { - - const char * formatDesc; - - switch (format) { - case PBM_TYPE: formatDesc = "PBM"; break; - case PGM_TYPE: formatDesc = "PGM"; break; - case PPM_TYPE: formatDesc = "PPM"; break; - default: assert(false); - } - - pm_message("writing %s file", formatDesc); -} - - - typedef struct { FILE * imageoutFileP; /* The stream to which we write the PNM image. Null for none. */ @@ -1687,7 +1670,7 @@ convertImage(TIFF * const tifP, analyzeImageType(tifP, tiffDir.bps, tiffDir.spp, tiffDir.photomet, &maxval, &format, colormap, cmdline.headerdump, cmdline); - reportOutputFormat(format); + pm_message("writing %s file", pnm_formattypenm(format)); pnmOut_init(imageoutFileP, alphaFileP, tiffDir.width, tiffDir.height, tiffDir.orientation, maxval, format, maxval, -- cgit 1.4.1