From fdcfcf28a28006a4239e54a34129d3b099d0df0d Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Fri, 25 Mar 2011 11:58:16 -0400 Subject: lib: remove dead code in be_local and be_package Signed-off-by: Dave Reisner --- lib/libalpm/be_local.c | 7 ------- lib/libalpm/be_package.c | 8 -------- 2 files changed, 15 deletions(-) diff --git a/lib/libalpm/be_local.c b/lib/libalpm/be_local.c index a60a0590..0257c0b8 100644 --- a/lib/libalpm/be_local.c +++ b/lib/libalpm/be_local.c @@ -256,13 +256,6 @@ static size_t _cache_changelog_read(void *ptr, size_t size, return fread(ptr, 1, size, (FILE *)fp); } -/* -static int _cache_changelog_feof(const pmpkg_t *pkg, void *fp) -{ - return feof((FILE*)fp); -} -*/ - /** * Close a package changelog for reading. Similar to fclose in functionality, * except that the 'file stream' is from the database. diff --git a/lib/libalpm/be_package.c b/lib/libalpm/be_package.c index e29850ba..91129127 100644 --- a/lib/libalpm/be_package.c +++ b/lib/libalpm/be_package.c @@ -101,14 +101,6 @@ static size_t _package_changelog_read(void *ptr, size_t size, } } -/* -static int _package_changelog_feof(const pmpkg_t *pkg, void *fp) -{ - // note: this doesn't quite work, no feof in libarchive - return archive_read_data((struct archive*)fp, NULL, 0); -} -*/ - /** * Close a package changelog for reading. Similar to fclose in functionality, * except that the 'file stream' is from an archive. -- cgit v1.2.3