]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
tmpl: Not used
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 21 Sep 2020 17:32:22 +0000 (12:32 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 21 Sep 2020 18:11:41 +0000 (13:11 -0500)
src/lib/server/tmpl.c
src/lib/server/tmpl.h

index c1929229e12a09f937b44c86178081173f2f082f..3006270b87aaa925364b87732e4007f6758bd48d 100644 (file)
@@ -1049,25 +1049,6 @@ void tmpl_attr_rewrite_num(tmpl_t *vpt, int16_t from, int16_t to)
        TMPL_ATTR_VERIFY(vpt);
 }
 
-void tmpl_attr_set_unresolved(tmpl_t *vpt, char const *name, size_t len)
-{
-       tmpl_attr_t *ref;
-
-       tmpl_assert_type(tmpl_is_attr_unresolved(vpt));
-
-       /*
-        *      Clear any existing references
-        */
-       if (fr_dlist_num_elements(&vpt->data.attribute.ar) > 0) {
-               fr_dlist_talloc_reverse_free(&vpt->data.attribute.ar);
-       }
-
-       ref = tmpl_attr_add(vpt, TMPL_ATTR_TYPE_UNRESOLVED);
-       ref->ar_unresolved = talloc_strndup(vpt, name, len);
-
-       TMPL_ATTR_VERIFY(vpt);
-}
-
 /** Set the request for an attribute ref
  *
  */
index adfce4a888ec7b787d546b1da5be355333ba12c3..ae26d22b14f3583dc3ea6be19fa7480a48ffb84f 100644 (file)
@@ -763,8 +763,6 @@ int                 tmpl_attr_copy(tmpl_t *dst, tmpl_t const *src) CC_HINT(nonnull);
 
 int                    tmpl_attr_set_da(tmpl_t *vpt, fr_dict_attr_t const *da) CC_HINT(nonnull);
 
-void                   tmpl_attr_set_unresolved(tmpl_t *vpt, char const *name, size_t len) CC_HINT(nonnull);
-
 int                    tmpl_attr_set_leaf_da(tmpl_t *vpt, fr_dict_attr_t const *da) CC_HINT(nonnull);
 
 void                   tmpl_attr_set_leaf_num(tmpl_t *vpt, int16_t num) CC_HINT(nonnull);