]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
this is no longer used
authorAlan T. DeKok <aland@freeradius.org>
Wed, 21 Dec 2022 15:36:15 +0000 (10:36 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 21 Dec 2022 17:49:19 +0000 (12:49 -0500)
src/lib/util/dict.h
src/lib/util/dict_unknown.c

index 5f300f1abc4cd9e6da18ae3dc25adc866026edcd..12709aa98c0624df42d0a86b81ec3e1e68cb2b55 100644 (file)
@@ -379,11 +379,6 @@ fr_dict_attr_t             *fr_dict_unknown_attr_afrom_da(TALLOC_CTX *ctx, fr_dict_attr_t c
                                                       CC_HINT(nonnull(2));
 
 
-fr_dict_attr_t         *fr_dict_unknown_afrom_fields(TALLOC_CTX *ctx,
-                                                     fr_dict_attr_t const *parent,
-                                                     unsigned int vendor, unsigned int attr)
-                                                     CC_HINT(nonnull(2));
-
 fr_slen_t              fr_dict_unknown_afrom_oid_substr(TALLOC_CTX *ctx,
                                                         fr_dict_attr_err_t *err, fr_dict_attr_t **out,
                                                         fr_dict_attr_t const *parent,
index be0566218679b64ef17bee056bb23051de4bba4e..2b00d3bd2352571ce331a9a2308eee034854e6ba 100644 (file)
@@ -360,34 +360,6 @@ fr_dict_attr_t     *fr_dict_unknown_attr_afrom_da(TALLOC_CTX *ctx, fr_dict_attr_t co
        return dict_unknown_alloc(ctx, da, FR_TYPE_OCTETS);
 }
 
-/** Initialise two #fr_dict_attr_t from numbers
- *
- * @param[in] ctx              to allocate the unknown attributes in.
- * @param[in] parent           of the unknown attribute (may also be unknown).
- * @param[in] vendor           of the unknown attribute.
- * @param[in] attr             of the unknown attribute.
- * @return
- *     - 0 on success.
- *     - -1 on failure.
- */
-fr_dict_attr_t *fr_dict_unknown_afrom_fields(TALLOC_CTX *ctx, fr_dict_attr_t const *parent,
-                                             unsigned int vendor, unsigned int attr)
-{
-       fr_dict_attr_t *unknown_vendor, *unknown;
-
-       unknown_vendor = fr_dict_unknown_vendor_afrom_num(ctx, parent, vendor);
-       if (unlikely(!unknown_vendor)) return NULL;
-
-       unknown = fr_dict_unknown_attr_afrom_num(ctx, unknown_vendor, attr);
-       if (unlikely(!unknown)) {
-               talloc_free(unknown_vendor);
-               return NULL;
-       }
-       talloc_steal(unknown, unknown_vendor);
-
-       return unknown;
-}
-
 /** Create a fr_dict_attr_t from an ASCII attribute and value
  *
  * Where the attribute name is in the form: