]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Remove unused functions
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 20 Jun 2024 23:16:42 +0000 (17:16 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 20 Jun 2024 23:16:42 +0000 (17:16 -0600)
src/lib/server/module_rlm.c
src/lib/server/module_rlm.h

index d9bdbd46dc928e1f5fbfd65c6ca37f74b0b223e7..18b3260cbb4f90bf1e7bae315acdd48900a620c3 100644 (file)
@@ -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.
index 067cc81f153cd3b64e6cb769a24d8d10d4828f86..b7820d7166435b3a271b841ffdbc79629cca75ce 100644 (file)
@@ -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);
 /** @} */