From eeb38ef677a1a08089222f6553a70ca7306503ea Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sat, 28 Apr 2007 19:56:29 -0400 Subject: Remove 'removes' array from libalpm We don't use this functionality for now, so get rid of it and the functions associated with it. Signed-off-by: Dan McGee --- lib/libalpm/add.c | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'lib/libalpm/add.c') diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c index 9c08db86..49385f4f 100644 --- a/lib/libalpm/add.c +++ b/lib/libalpm/add.c @@ -172,9 +172,6 @@ error: int _alpm_add_prepare(pmtrans_t *trans, pmdb_t *db, alpm_list_t **data) { alpm_list_t *lp = NULL, *i = NULL; - alpm_list_t *rmlist = NULL; - char rm_fname[PATH_MAX]; - pmpkg_t *info = NULL; ALPM_LOG_FUNC; @@ -255,21 +252,7 @@ int _alpm_add_prepare(pmtrans_t *trans, pmdb_t *db, alpm_list_t **data) EVENT(trans, PM_TRANS_EVT_CHECKDEPS_DONE, NULL, NULL); } - /* Cleaning up - */ - EVENT(trans, PM_TRANS_EVT_CLEANUP_START, NULL, NULL); - _alpm_log(PM_LOG_DEBUG, _("cleaning up")); - for (lp=trans->packages; lp!=NULL; lp=lp->next) { - info=(pmpkg_t *)lp->data; - for (rmlist = alpm_pkg_get_removes(info); rmlist; rmlist = rmlist->next) { - snprintf(rm_fname, PATH_MAX, "%s%s", handle->root, (char *)rmlist->data); - remove(rm_fname); - } - } - EVENT(trans, PM_TRANS_EVT_CLEANUP_DONE, NULL, NULL); - - /* Check for file conflicts - */ + /* Check for file conflicts */ if(!(trans->flags & PM_TRANS_FLAG_FORCE)) { EVENT(trans, PM_TRANS_EVT_FILECONFLICTS_START, NULL, NULL); -- cgit v1.2.3-54-g00ecf