From: Panu Matilainen Date: Tue, 9 Oct 2007 09:28:59 +0000 (+0300) Subject: Remove unused rpmio fdFdopen() function X-Git-Tag: tznext/4.11.0.1.tizen20130304~5235 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=351c1f35f79da9f8c0cccf7c569a5b6ba2f896f5;p=tools%2Flibrpm-tizen.git Remove unused rpmio fdFdopen() function --- diff --git a/rpmio/rpmio.c b/rpmio/rpmio.c index 3fb3cbc..620cd45 100644 --- a/rpmio/rpmio.c +++ b/rpmio/rpmio.c @@ -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 - /* =============================================================== */ /** diff --git a/rpmio/rpmio.h b/rpmio/rpmio.h index 1bb4b9b..1c755c4 100644 --- a/rpmio/rpmio.h +++ b/rpmio/rpmio.h @@ -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 */ /**