From: Arran Cudbard-Bell Date: Thu, 20 Jun 2024 23:16:42 +0000 (-0600) Subject: Remove unused functions X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbc0c68753e83433d015b1b0c96aff419c25372b;p=thirdparty%2Ffreeradius-server.git Remove unused functions --- diff --git a/src/lib/server/module_rlm.c b/src/lib/server/module_rlm.c index d9bdbd46dc9..18b3260cbb4 100644 --- a/src/lib/server/module_rlm.c +++ b/src/lib/server/module_rlm.c @@ -418,36 +418,6 @@ fr_pool_t *module_rlm_connection_pool_init(CONF_SECTION *module, return pool; } -/* - * Convert a string to an integer - */ -module_method_t module_rlm_state_str_to_method(module_state_func_table_t const *table, - char const *name, module_method_t def) -{ - module_state_func_table_t const *this; - - if (!name) return def; - - for (this = table; this->name != NULL; this++) { - if (strcasecmp(this->name, name) == 0) return this->func; - } - - return def; -} - -/* - * Convert an integer to a string. - */ -char const *module_rlm_state_method_to_str(module_state_func_table_t const *table, - module_method_t method, char const *def) -{ - module_state_func_table_t const *this; - - for (this = table; this->name != NULL; this++) if (this->func == method) return this->name; - - return def; -} - /** Set the next section type if it's not already set * * @param[in] request The current request. diff --git a/src/lib/server/module_rlm.h b/src/lib/server/module_rlm.h index 067cc81f153..b7820d71664 100644 --- a/src/lib/server/module_rlm.h +++ b/src/lib/server/module_rlm.h @@ -110,12 +110,6 @@ exfile_t *module_rlm_exfile_init(TALLOC_CTX *ctx, * * @{ */ -module_method_t module_rlm_state_str_to_method(module_state_func_table_t const *table, - char const *name, module_method_t def); - -char const *module_rlm_state_method_to_str(module_state_func_table_t const *table, - module_method_t method, char const *def); - bool module_rlm_section_type_set(request_t *request, fr_dict_attr_t const *type_da, fr_dict_enum_value_t const *enumv); /** @} */