summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-03-09 19:12:09 +0000
committerAurelien Foret <aurelien@archlinux.org>2006-03-09 19:12:09 +0000
commita08a9896c9f9bf18459002b1fdc4b4927897b035 (patch)
treeb0df420df73247f2d0525220726796383a45d60b
parent25571830d605cc3203bb1d7d46667f9bed92e241 (diff)
code cleanup
-rw-r--r--lib/libalpm/sync.c8
1 files changed, 0 insertions, 8 deletions
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);
}