From: Alan T. DeKok Date: Wed, 24 Mar 2021 15:26:01 +0000 (-0400) Subject: remove unnecessary file X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08339165f9e686d094e226aef38cb1d1a0b5d28a;p=thirdparty%2Ffreeradius-server.git remove unnecessary file --- diff --git a/src/lib/util/foo b/src/lib/util/foo deleted file mode 100644 index 543d17edd9e..00000000000 --- a/src/lib/util/foo +++ /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; - }