]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
remove unnecessary file
authorAlan T. DeKok <aland@freeradius.org>
Wed, 24 Mar 2021 15:26:01 +0000 (11:26 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 31 Mar 2021 15:10:21 +0000 (16:10 +0100)
src/lib/util/foo [deleted file]

diff --git a/src/lib/util/foo b/src/lib/util/foo
deleted file mode 100644 (file)
index 543d17e..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-       if (fr_dict_valid_name(name, -1) <= 0) return -1;
-
-
-       /******************** sanity check attribute number ********************/
-
-       if (parent->flags.is_root) {
-               static unsigned int max_attr = UINT8_MAX + 1;
-
-               if (*attr == -1) {
-                       if (fr_dict_attr_by_name(NULL, fr_dict_root(dict), name)) return 0; /* exists, don't add it again */
-                       *attr = ++max_attr;
-                       flags->internal = 1;
-
-               } else if (*attr <= 0) {
-                       fr_strerror_printf("ATTRIBUTE number %i is invalid, must be greater than zero", *attr);
-                       return false;
-
-               } else if ((unsigned int) *attr > max_attr) {
-                       max_attr = *attr;
-               }
-
-               /*
-                *      Auto-set internal flags for raddb/dictionary.
-                *      So that the end user doesn't have to know
-                *      about internal implementation of the server.
-                */
-               if ((parent->flags.type_size == 1) &&
-                   (*attr >= 3000) && (*attr < 4000)) {
-                       flags->internal = true;
-               }
-       }
-
-       /*
-        *      Any other negative attribute number is wrong.
-        */
-       if (*attr < 0) {
-               fr_strerror_printf("ATTRIBUTE number %i is invalid, must be greater than zero", *attr);
-               return false;
-       }