From: Arran Cudbard-Bell Date: Sun, 19 Feb 2023 22:45:20 +0000 (-0600) Subject: xlat: Remove ifdef'd out code X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd621ca060e4cfacbc00cfe4de60d5102249ef23;p=thirdparty%2Ffreeradius-server.git xlat: Remove ifdef'd out code --- diff --git a/src/lib/unlang/xlat_tokenize.c b/src/lib/unlang/xlat_tokenize.c index 520ea0185e6..6f6593e7b0f 100644 --- a/src/lib/unlang/xlat_tokenize.c +++ b/src/lib/unlang/xlat_tokenize.c @@ -136,19 +136,6 @@ xlat_exp_t *xlat_exp_func_alloc(TALLOC_CTX *ctx, xlat_t *func, xlat_exp_head_t c return node; } -#if 0 -/** Set the format string for an xlat node - * - * @param[in] node to set fmt for. - * @param[in] fmt talloced buffer to set as the fmt string. - */ -static inline CC_HINT(always_inline) void xlat_exp_set_name_buffer(xlat_exp_t *node, char const *fmt) -{ - if (node->fmt) talloc_const_free(node->fmt); - node->fmt = talloc_bstrdup(node, fmt); -} -#endif - static int xlat_tokenize_string(xlat_exp_head_t *head, fr_sbuff_t *in, bool brace, fr_sbuff_parse_rules_t const *p_rules, tmpl_rules_t const *t_rules);