Remove unused rpmio fdFdopen() function
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 9 Oct 2007 09:28:59 +0000 (12:28 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 9 Oct 2007 09:28:59 +0000 (12:28 +0300)
rpmio/rpmio.c
rpmio/rpmio.h

index 3fb3cbc..620cd45 100644 (file)
@@ -182,23 +182,6 @@ int fdFileno(void * cookie) {
   return fdio->_fileno(cookie); 
 }
 
-#ifdef UNUSED
-FILE *fdFdopen(void * cookie, const char *fmode)
-{
-    FD_t fd = c2f(cookie);
-    int fdno;
-    FILE * fp;
-
-    if (fmode == NULL) return NULL;
-    fdno = __fdFileno(fd);
-    if (fdno < 0) return NULL;
-    fp = fdopen(fdno, fmode);
-DBGIO(fd, (stderr, "==> fdFdopen(%p,\"%s\") fdno %d -> fp %p fdno %d\n", cookie, fmode, fdno, fp, fileno(fp)));
-    fd = fdFree(fd, "open (fdFdopen)");
-    return fp;
-}
-#endif
-
 /* =============================================================== */
 
 /**
index 1bb4b9b..1c755c4 100644 (file)
@@ -340,10 +340,6 @@ off_t      fdSize(FD_t fd);
  */
 FD_t fdDup(int fdno);
 
-#ifdef UNUSED
-FILE *fdFdopen( void * cookie, const char * mode);
-#endif
-
 /* XXX Legacy interfaces needed by gnorpm, rpmfind et al */
 
 /**