From c2b27b58804b9a33a8dd13f62a192f5154416d0d Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Fri, 6 Jan 2006 22:35:26 +0000 Subject: removed ORE tags (after tests, no real performance increase by implementing them) --- lib/libalpm/remove.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'lib/libalpm') diff --git a/lib/libalpm/remove.c b/lib/libalpm/remove.c index 7356870b..f6b85b8c 100644 --- a/lib/libalpm/remove.c +++ b/lib/libalpm/remove.c @@ -56,9 +56,6 @@ int remove_loadtarget(pmtrans_t *trans, pmdb_t *db, char *name) ASSERT(trans != NULL, RET_ERR(PM_ERR_TRANS_NULL, -1)); ASSERT(name != NULL, RET_ERR(PM_ERR_WRONG_ARGS, -1)); - /* ORE - we should better find the package in the cache, and then perform a - db_read(INFRQ_FILES) to add files information to it. */ _alpm_log(PM_LOG_FLOW2, "loading target %s", name); if((info = db_scan(db, name, INFRQ_ALL)) == NULL) { _alpm_log(PM_LOG_ERROR, "could not find %s in database", name); @@ -95,8 +92,6 @@ int remove_prepare(pmtrans_t *trans, pmdb_t *db, PMList **data) pmdepmissing_t* miss = (pmdepmissing_t*)j->data; pmpkg_t *info = db_get_pkgfromcache(db, miss->depend.name); if(!pkg_isin(info, trans->packages)) { - /* ORE - see remove_loadtarget() on how to avoid db_scan() */ info = db_scan(db, miss->depend.name, INFRQ_ALL); trans->packages = pm_list_add(trans->packages, info); } -- cgit v1.2.3-70-g09d2