From a039c48f95ebd30ab6674c47c2c96460a32774aa Mon Sep 17 00:00:00 2001 From: Jindrich Novy Date: Tue, 3 May 2011 10:42:53 +0200 Subject: [PATCH] Remove obsolete timedRead() from API --- rpmio/rpmio.c | 5 ----- rpmio/rpmio.h | 7 ------- 2 files changed, 12 deletions(-) diff --git a/rpmio/rpmio.c b/rpmio/rpmio.c index 58c6230..299c702 100644 --- a/rpmio/rpmio.c +++ b/rpmio/rpmio.c @@ -637,11 +637,6 @@ static const struct FDIO_s ufdio_s = { }; static const FDIO_t ufdio = &ufdio_s ; -ssize_t timedRead(FD_t fd, void * bufptr, size_t length) -{ - return Fread(bufptr, 1, length, fd); -} - /* =============================================================== */ /* Support for GZIP library. */ diff --git a/rpmio/rpmio.h b/rpmio/rpmio.h index f31c620..f43192f 100644 --- a/rpmio/rpmio.h +++ b/rpmio/rpmio.h @@ -122,13 +122,6 @@ FD_t fdNew (void); */ int ufdCopy(FD_t sfd, FD_t tfd); -/** - * XXX the name is misleading, this is a legacy wrapper that ensures - * only S_ISREG() files are read, nothing to do with timed... - * TODO: get this out of the API, should go out in the next soname bump - */ -ssize_t timedRead(FD_t fd, void * bufptr, size_t length); - /** \ingroup rpmio * Identify per-desciptor I/O operation statistics. */ -- 2.7.4