Skip to content

Commit

Permalink
Remove unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Jun 20, 2024
1 parent 8fd0c86 commit fbc0c68
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 36 deletions.
30 changes: 0 additions & 30 deletions src/lib/server/module_rlm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 0 additions & 6 deletions src/lib/server/module_rlm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
/** @} */

Expand Down

0 comments on commit fbc0c68

Please sign in to comment.