From 0e8db956e39a0d95da7be7c9286d77dd1d9eed82 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Tue, 9 Oct 2007 12:42:27 +0300 Subject: Remove unused legacy rpmio fd*() interfaces - fdFileno(), fdOpen(), fdRead(), fdWrite(), fdClose() gone... --- rpmio/rpmio.c | 34 ---------------------------------- rpmio/rpmio.h | 20 -------------------- 2 files changed, 54 deletions(-) (limited to 'rpmio') diff --git a/rpmio/rpmio.c b/rpmio/rpmio.c index 620cd4506..7ace21613 100644 --- a/rpmio/rpmio.c +++ b/rpmio/rpmio.c @@ -176,12 +176,6 @@ int __fdFileno(void * cookie) return fd->fps[0].fdno; } -/** - */ -int fdFileno(void * cookie) { - return fdio->_fileno(cookie); -} - /* =============================================================== */ /** @@ -286,13 +280,6 @@ FD_t XfdNew(const char * msg, const char * file, unsigned line) return XfdLink(fd, msg); } -/** - */ -ssize_t fdRead(void * cookie, char * buf, size_t count) -{ - return fdio->read(cookie, buf, count); -} - /** */ static ssize_t __fdRead(void * cookie, char * buf, size_t count) @@ -313,13 +300,6 @@ DBGIO(fd, (stderr, "==>\t__fdRead(%p,%p,%ld) rc %ld %s\n", cookie, buf, (long)co return rc; } -/** - */ -ssize_t fdWrite(void * cookie, const char * buf, size_t count) -{ - return fdio->write(cookie, buf, count); -} - /** */ static ssize_t __fdWrite(void * cookie, const char * buf, size_t count) @@ -363,13 +343,6 @@ DBGIO(fd, (stderr, "==>\tfdSeek(%p,%ld,%d) rc %lx %s\n", cookie, (long)p, whence return rc; } -/** - */ -int fdClose( void * cookie) -{ - return fdio->close(cookie); -} - /** */ static int __fdClose( void * cookie) @@ -394,13 +367,6 @@ DBGIO(fd, (stderr, "==>\t__fdClose(%p) rc %lx %s\n", (fd ? fd : NULL), (unsigned return rc; } -/** - */ -FD_t fdOpen(const char *path, int flags, mode_t mode) -{ - return fdio->_open(path, flags, mode); -} - /** */ static FD_t __fdOpen(const char *path, int flags, mode_t mode) diff --git a/rpmio/rpmio.h b/rpmio/rpmio.h index 1c755c45f..6ca136730 100644 --- a/rpmio/rpmio.h +++ b/rpmio/rpmio.h @@ -342,26 +342,6 @@ FD_t fdDup(int fdno); /* XXX Legacy interfaces needed by gnorpm, rpmfind et al */ -/** - */ -extern int fdFileno(void * cookie); - -/** - */ -extern FD_t fdOpen(const char *path, int flags, mode_t mode); - -/** - */ -extern ssize_t fdRead(void * cookie, char * buf, size_t count); - -/** - */ -extern ssize_t fdWrite(void * cookie, const char * buf, size_t count); - -/** - */ -extern int fdClose( void * cookie); - /** */ extern FD_t fdLink (void * cookie, const char * msg); -- cgit v1.2.3