aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-02-29 23:45:44 +0000
committerThierry Vignaud <tv@mageia.org>2012-02-29 23:45:44 +0000
commit85644f36bea6d31c85d15695c87d268719e01c5c (patch)
tree2a8972dac98ea0ca790297dc330c8e15ff267e88
parent361797bee8a4f4f5adb95b732c763178076f2652 (diff)
downloadperl-URPM-85644f36bea6d31c85d15695c87d268719e01c5c.tar
perl-URPM-85644f36bea6d31c85d15695c87d268719e01c5c.tar.gz
perl-URPM-85644f36bea6d31c85d15695c87d268719e01c5c.tar.bz2
perl-URPM-85644f36bea6d31c85d15695c87d268719e01c5c.tar.xz
perl-URPM-85644f36bea6d31c85d15695c87d268719e01c5c.zip
kill dead code
-rw-r--r--URPM.xs4
1 files changed, 0 insertions, 4 deletions
diff --git a/URPM.xs b/URPM.xs
index fa03071..d0198d1 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -641,12 +641,10 @@ return_files(Header header, int filter_mode) {
struct rpmtd_s td_flags, td_fmodes;
int32_t *flags = NULL;
- uint16_t *fmodes = NULL;
if (filter_mode) {
headerGet(header, RPMTAG_FILEFLAGS, &td_flags, HEADERGET_DEFAULT);
headerGet(header, RPMTAG_FILEMODES, &td_fmodes, HEADERGET_DEFAULT);
flags = td_flags.data;
- fmodes = td_fmodes.data;
}
struct rpmtd_s td_baseNames, td_dirIndexes, td_dirNames, td_list;
@@ -1190,10 +1188,8 @@ update_header(char *filename, URPM__Package pkg, __attribute__((unused)) int kee
rpmtsSetVSFlags(ts, _RPMVSF_NOSIGNATURES | vsflags);
if (fd != NULL && rpmReadPackageFile(ts, fd, filename, &header) == 0 && header) {
char *basename;
- int32_t size;
basename = strrchr(filename, '/');
- size = fdSize(fd);
Fclose(fd);
/* this is only kept for compatibility with older distros