summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2007-11-07 13:47:42 +0200
committerPanu Matilainen <pmatilai@redhat.com>2007-11-07 13:47:42 +0200
commit2967cb5ffa616566e7daf0487b80c335e03b2250 (patch)
treed5578ca1f1b31acfa7d26b2763a13c9ed67ba2c7
parent1688cc62bf51ccb611e4c3403c24d93e72fb270f (diff)
downloadrpm-2967cb5ffa616566e7daf0487b80c335e03b2250.tar.gz
rpm-2967cb5ffa616566e7daf0487b80c335e03b2250.tar.bz2
rpm-2967cb5ffa616566e7daf0487b80c335e03b2250.zip
Eliminate dead code
-rw-r--r--lib/package.c12
1 files changed, 0 insertions, 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)