]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
xlat: Remove ifdef'd out code
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 19 Feb 2023 22:45:20 +0000 (16:45 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 19 Feb 2023 22:55:41 +0000 (16:55 -0600)
src/lib/unlang/xlat_tokenize.c

index 520ea0185e644b7c6bae109312739e9bf98e2023..6f6593e7b0f9282ee246f6af8c1d008174018d70 100644 (file)
@@ -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);