Eliminate unnecessary "delete" argument to freeArgs()
This became unused and useless with the big scoping change in
commit 237f35f16f
. No functional
changes here.
This commit is contained in:
parent
609adaa758
commit
4e647cd979
|
@ -616,10 +616,9 @@ exit:
|
|||
/**
|
||||
* Free parsed arguments for parameterized macro.
|
||||
* @param mb macro expansion state
|
||||
* @param delete
|
||||
*/
|
||||
static void
|
||||
freeArgs(MacroBuf mb, int delete)
|
||||
freeArgs(MacroBuf mb)
|
||||
{
|
||||
rpmMacroContext mc = mb->mc;
|
||||
|
||||
|
@ -638,9 +637,6 @@ freeArgs(MacroBuf mb, int delete)
|
|||
me->flags |= ME_USED;
|
||||
}
|
||||
|
||||
if (!delete)
|
||||
continue;
|
||||
|
||||
/* compensate if the slot is to go away */
|
||||
if (me->prev == NULL)
|
||||
i--;
|
||||
|
@ -1312,7 +1308,7 @@ expandMacro(MacroBuf mb, const char *src, size_t slen)
|
|||
|
||||
/* Free args for "%name " macros with opts */
|
||||
if (me->opts != NULL)
|
||||
freeArgs(mb, 1);
|
||||
freeArgs(mb);
|
||||
|
||||
s = se;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue