diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2007-11-08 10:32:10 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2007-11-08 10:32:10 +0200 |
commit | cc465dd6233990630a064b6a1634be61c9f845a7 (patch) | |
tree | 4303e7e277797f25a7f80ab128b3cdaac81834d4 /lib | |
parent | f7604b1a0eb6ec1bc436a2c137ae4fbc4cb1e165 (diff) | |
download | librpm-tizen-cc465dd6233990630a064b6a1634be61c9f845a7.tar.gz librpm-tizen-cc465dd6233990630a064b6a1634be61c9f845a7.tar.bz2 librpm-tizen-cc465dd6233990630a064b6a1634be61c9f845a7.zip |
Kill off unused rpmSetVar() and freeRpmVar()
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rpmrc.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/lib/rpmrc.c b/lib/rpmrc.c index 1bf7d3dc1..e31b7029b 100644 --- a/lib/rpmrc.c +++ b/lib/rpmrc.c @@ -1266,27 +1266,6 @@ static const char *rpmGetVar(int var) return rpmGetVarArch(var, NULL); } -/* this doesn't free the passed pointer! */ -static void freeRpmVar(struct rpmvarValue * orig) -{ - struct rpmvarValue * next, * var = orig; - - while (var) { - next = var->next; - var->arch = _free(var->arch); - var->value = _free(var->value); - - if (var != orig) var = _free(var); - var = next; - } -} - -static void rpmSetVar(int var, const char * val) -{ - freeRpmVar(&values[var]); - values[var].value = (val ? xstrdup(val) : NULL); -} - static void rpmSetVarArch(int var, const char * val, const char * arch) { struct rpmvarValue * next = values + var; |