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:
Panu Matilainen 2017-08-22 10:24:21 +03:00
parent 609adaa758
commit 4e647cd979
1 changed files with 2 additions and 6 deletions

View File

@ -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;
}