]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
remove unused function
authorAlan T. DeKok <aland@freeradius.org>
Mon, 17 Jul 2023 18:25:04 +0000 (14:25 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 17 Jul 2023 18:25:04 +0000 (14:25 -0400)
src/lib/util/dict.h
src/lib/util/dict_util.c

index e5e4af0b0c703c6fd41edf9c941ba2945ce3da8d..075895a8bbe657410a44c89c0288a05d3ca1107e 100644 (file)
@@ -473,8 +473,6 @@ fr_dict_attr_t const        *fr_dict_attr_by_oid(fr_dict_attr_err_t *err,
                                             fr_dict_attr_t const *parent, char const *oid)
                                             CC_HINT(nonnull(2,3));
 
-bool                   fr_dict_attr_compatible(fr_dict_attr_t const *a, fr_dict_attr_t const *b) CC_HINT(nonnull);
-
 bool                   fr_dict_attr_can_contain(fr_dict_attr_t const *parent, fr_dict_attr_t const *child) CC_HINT(nonnull);
 
 /** @} */
index e165b417ff89a701cc53c5066aa666835a195454..bc089514613a983a02dcff3f1e28da4c7864f40f 100644 (file)
@@ -4286,39 +4286,6 @@ void fr_dict_attr_verify(char const *file, int line, fr_dict_attr_t const *da)
        }
 }
 
-/** See if two DAs are compatible, and can contain the same things.
- *
- */
-bool fr_dict_attr_compatible(fr_dict_attr_t const *a, fr_dict_attr_t const *b)
-{
-       fr_dict_attr_t const *ref;
-
-       /*
-        *      They're the same DA, they're compatible.
-        */
-       if (a == b) return true;
-
-       /*
-        *      @todo - TLVs and STRUCTs can clone other things.  In
-        *      which case we want to allow the various cloned src/dst
-        *      attributes to be able to copy child VPs to each other.
-        */
-
-       if ((a->type != FR_TYPE_GROUP) && (b->type != FR_TYPE_GROUP)) return false;
-
-       /*
-        *      Groups can reference other things.  In which case we
-        *      check the reference, not the input attribute.
-        */
-       ref = fr_dict_attr_ref(a);
-       if (ref) a = ref;
-
-       ref = fr_dict_attr_ref(b);
-       if (ref) b = ref;
-
-       return (a == b);
-}
-
 /** See if a structural da is allowed to contain another da
  *
  *  We have some complex rules with different structural types,