From a08a9896c9f9bf18459002b1fdc4b4927897b035 Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Thu, 9 Mar 2006 19:12:09 +0000 Subject: code cleanup --- lib/libalpm/sync.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'lib') diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c index 3a366aad..a3553c27 100644 --- a/lib/libalpm/sync.c +++ b/lib/libalpm/sync.c @@ -109,7 +109,6 @@ static pmsyncpkg_t *find_pkginsync(char *needle, PMList *haystack) PMList *_alpm_sync_load_dbarchive(char *archive) { PMList *lp = NULL; - DIR *dir = NULL; TAR *tar = NULL; tartype_t gztype = { (openfunc_t)_alpm_gzopen_frontend, @@ -123,10 +122,6 @@ PMList *_alpm_sync_load_dbarchive(char *archive) goto error; } - /* ORE - readdir tmp_dir */ - /* for each subdir, parse %s/desc and %s/depends */ - /* then db_write it */ - tar_close(tar); return(lp); @@ -135,9 +130,6 @@ error: if(tar) { tar_close(tar); } - if(dir) { - closedir(dir); - } return(NULL); } -- cgit v1.2.3-24-g4f1b