From 2967cb5ffa616566e7daf0487b80c335e03b2250 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Wed, 7 Nov 2007 13:47:42 +0200 Subject: Eliminate dead code --- lib/package.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lib/package.c b/lib/package.c index ca8e7b40b..aa309db86 100644 --- a/lib/package.c +++ b/lib/package.c @@ -693,18 +693,6 @@ rpmRC rpmReadPackageFile(rpmts ts, FD_t fd, const char * fn, Header * hdrp) if (hdrp) *hdrp = NULL; -#ifdef DYING - { struct stat st; - memset(&st, 0, sizeof(st)); - (void) fstat(Fileno(fd), &st); - /* if fd points to a socket, pipe, etc, st.st_size is *always* zero */ - if (S_ISREG(st.st_mode) && st.st_size < sizeof(*l)) { - rc = RPMRC_NOTFOUND; - goto exit; - } - } -#endif - memset(l, 0, sizeof(*l)); rc = readLead(fd, l); if (rc != RPMRC_OK) -- cgit v1.2.3