From: Florian Festi Date: Fri, 5 Feb 2010 11:43:21 +0000 (+0100) Subject: Remove no longer neede rpmts->filesystemCount and->filesystems X-Git-Tag: tznext/4.11.0.1.tizen20130304~2330 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=27b216694a9e19f932f24e6fceb6c114aeae5fb9;p=tools%2Flibrpm-tizen.git Remove no longer neede rpmts->filesystemCount and->filesystems --- diff --git a/lib/rpmts.c b/lib/rpmts.c index 183523d..f45a676 100644 --- a/lib/rpmts.c +++ b/lib/rpmts.c @@ -855,8 +855,6 @@ rpmts rpmtsCreate(void) ts = xcalloc(1, sizeof(*ts)); memset(&ts->ops, 0, sizeof(ts->ops)); (void) rpmswEnter(rpmtsOp(ts, RPMTS_OP_TOTAL), -1); - ts->filesystemCount = 0; - ts->filesystems = NULL; ts->dsi = NULL; ts->solve = NULL; diff --git a/lib/rpmts_internal.h b/lib/rpmts_internal.h index c4f42f8..08d7937 100644 --- a/lib/rpmts_internal.h +++ b/lib/rpmts_internal.h @@ -26,8 +26,6 @@ struct rpmts_s { rpmprobFilterFlags ignoreSet; /*!< Bits to filter current problems. */ - unsigned int filesystemCount; /*!< No. of mounted filesystems. */ - const char ** filesystems; /*!< Mounted filesystem names. */ rpmDiskSpaceInfo dsi; /*!< Per filesystem disk/inode usage. */ rpmdb rdb; /*!< Install database handle. */ diff --git a/lib/transaction.c b/lib/transaction.c index e61cd57..c585df9 100644 --- a/lib/transaction.c +++ b/lib/transaction.c @@ -65,7 +65,6 @@ static int rpmtsInitDSI(const rpmts ts) if (rpmtsFilterFlags(ts) & RPMPROB_FILTER_DISKSPACE) return 0; ts->dsi = _free(ts->dsi); - ts->filesystemCount = 0; ts->dsi = xcalloc(1, sizeof(*ts->dsi)); return 0; }