summaryrefslogtreecommitdiffstats
path: root/lib/libalpm
diff options
context:
space:
mode:
authorChantry Xavier <shiningxc@gmail.com>2008-02-26 22:17:55 +0100
committerDan McGee <dan@archlinux.org>2008-02-28 01:53:18 +0100
commit79945ef7ff7787de70aab55e87dca00eb4b87353 (patch)
tree2640d6118893f32936bc379230706fd2b4ec28e2 /lib/libalpm
parentd75f693155c3d7e595a779f15beea516d321f228 (diff)
downloadpacman-79945ef7ff7787de70aab55e87dca00eb4b87353.tar.gz
pacman-79945ef7ff7787de70aab55e87dca00eb4b87353.tar.xz
clean up dltotal leftover from 81a2a06818d367f852.
Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
Diffstat (limited to 'lib/libalpm')
-rw-r--r--lib/libalpm/sync.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c
index 8d3e04c4..ff002caa 100644
--- a/lib/libalpm/sync.c
+++ b/lib/libalpm/sync.c
@@ -910,7 +910,6 @@ int _alpm_sync_commit(pmtrans_t *trans, pmdb_t *db_local, alpm_list_t **data)
pmtrans_t *tr = NULL;
int replaces = 0, retval = 0;
const char *cachedir = NULL;
- int dltotal = 0;
ALPM_LOG_FUNC;
@@ -920,14 +919,6 @@ int _alpm_sync_commit(pmtrans_t *trans, pmdb_t *db_local, alpm_list_t **data)
cachedir = _alpm_filecache_setup();
trans->state = STATE_DOWNLOADING;
- /* Sum up the download sizes. This has to be in its own loop because
- * the download loop is grouped by db. */
- for(j = trans->packages; j; j = j->next) {
- pmsyncpkg_t *sync = j->data;
- pmpkg_t *spkg = sync->pkg;
- dltotal += alpm_pkg_download_size(spkg, db_local);
- }
-
/* group sync records by repository and download */
for(i = handle->dbs_sync; i; i = i->next) {
pmdb_t *current = i->data;