From e8c8268452c810cb4615e7080b1deb633c027ea1 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Thu, 3 Jan 2008 04:40:22 +0000 Subject: remove recently added dead code git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@545 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- lib/pmfileio.c | 32 -------------------------------- 1 file changed, 32 deletions(-) (limited to 'lib/pmfileio.c') diff --git a/lib/pmfileio.c b/lib/pmfileio.c index 12581b8d..0ec5f87e 100644 --- a/lib/pmfileio.c +++ b/lib/pmfileio.c @@ -225,38 +225,6 @@ makeTmpfileWithTemplate(const char * const filenameTemplate, -static void -fMakeTmpfileWithTemplate(const char * const filenameTemplate, - FILE ** const filePP, - const char ** const filenameP, - const char ** const errorP) { - - int fd; - - makeTmpfileWithTemplate(filenameTemplate, &fd, filenameP, errorP); - - if (!*errorP) { - FILE * fileP; - fileP = fdopen(fd, "w+b"); - - if (fileP == NULL) - asprintfN(errorP, "Unable to create temporary file. " - "fdopen() failed with errno %d (%s)", - errno, strerror(errno)); - else { - *errorP = NULL; - *filePP = fileP; - } - if (*errorP) { - unlink(*filenameP); - strfree(*filenameP); - close(fd); - } - } -} - - - void pm_make_tmpfile_fd(int * const fdP, const char ** const filenameP) { -- cgit 1.4.1