From: Alan T. DeKok Date: Wed, 21 Dec 2022 15:36:15 +0000 (-0500) Subject: this is no longer used X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e28ccbbb97ae619ba5c5ce95032105d6532eb3c4;p=thirdparty%2Ffreeradius-server.git this is no longer used --- diff --git a/src/lib/util/dict.h b/src/lib/util/dict.h index 5f300f1abc4..12709aa98c0 100644 --- a/src/lib/util/dict.h +++ b/src/lib/util/dict.h @@ -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, diff --git a/src/lib/util/dict_unknown.c b/src/lib/util/dict_unknown.c index be056621867..2b00d3bd235 100644 --- a/src/lib/util/dict_unknown.c +++ b/src/lib/util/dict_unknown.c @@ -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: