summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-06-09 15:38:28 +0300
committerPanu Matilainen <pmatilai@redhat.com>2008-06-09 15:38:28 +0300
commitf2bdbe3d7df24e874bb9713354a5bad4a7b7c349 (patch)
treea0fdab5944b8dca853d08c8901113a5775068242
parent45ac934fdcf0efc14147051d37bab789b00b41da (diff)
downloadlibrpm-tizen-f2bdbe3d7df24e874bb9713354a5bad4a7b7c349.tar.gz
librpm-tizen-f2bdbe3d7df24e874bb9713354a5bad4a7b7c349.tar.bz2
librpm-tizen-f2bdbe3d7df24e874bb9713354a5bad4a7b7c349.zip
Lose bunch of unused fields from FD_t
- leftovers from times of internal http/dav etc transports..
-rw-r--r--rpmio/rpmio.c7
-rw-r--r--rpmio/rpmio_internal.h4
2 files changed, 0 insertions, 11 deletions
diff --git a/rpmio/rpmio.c b/rpmio/rpmio.c
index 69637f1d6..8e012606e 100644
--- a/rpmio/rpmio.c
+++ b/rpmio/rpmio.c
@@ -121,10 +121,6 @@ static const char * fdbg(FD_t fd)
sprintf(be, " clen %d", (int)fd->bytesRemain);
be += strlen(be);
}
- if (fd->wr_chunked) {
- strcpy(be, " chunked");
- be += strlen(be);
- }
*be++ = '\t';
for (i = fd->nfps; i >= 0; i--) {
FDSTACK_t * fps = &fd->fps[i];
@@ -289,7 +285,6 @@ FD_t fdNew(const char * msg)
fd->rd_timeoutsecs = 1; /* XXX default value used to be -1 */
fd->contentLength = fd->bytesRemain = -1;
- fd->wr_chunked = 0;
fd->syserrno = 0;
fd->errcookie = NULL;
fd->stats = xcalloc(1, sizeof(*fd->stats));
@@ -297,8 +292,6 @@ FD_t fdNew(const char * msg)
fd->ndigests = 0;
memset(fd->digests, 0, sizeof(fd->digests));
- fd->firstFree = 0;
- fd->fileSize = 0;
fd->fd_cpioPos = 0;
return fdLink(fd, msg);
diff --git a/rpmio/rpmio_internal.h b/rpmio/rpmio_internal.h
index 6bf658c8f..524221a8d 100644
--- a/rpmio/rpmio_internal.h
+++ b/rpmio/rpmio_internal.h
@@ -52,8 +52,6 @@ struct _FD_s {
int rd_timeoutsecs; /* ufdRead: per FD_t timer */
ssize_t bytesRemain; /* ufdio: */
ssize_t contentLength; /* ufdio: */
- int persist; /* ufdio: */
- int wr_chunked; /* ufdio: */
int syserrno; /* last system errno encountered */
const void *errcookie; /* gzdio/bzdio/ufdio: */
@@ -64,8 +62,6 @@ struct _FD_s {
#define FDDIGEST_MAX 4
struct _FDDIGEST_s digests[FDDIGEST_MAX];
- unsigned int firstFree; /* fadio: */
- rpm_off_t fileSize; /* fadio: */
rpm_loff_t fd_cpioPos; /* cpio: */
};