mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
remove an unused function
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19226 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -260,14 +260,6 @@ int ast_module_reload(const char *name);
|
|||||||
*/
|
*/
|
||||||
char *ast_module_helper(const char *line, const char *word, int pos, int state, int rpos, int needsreload);
|
char *ast_module_helper(const char *line, const char *word, int pos, int state, int rpos, int needsreload);
|
||||||
|
|
||||||
/*!
|
|
||||||
* \brief Given a function address, find the corresponding module.
|
|
||||||
* This is required as a workaround to the fact that we do not
|
|
||||||
* have a module argument to the load_module() function.
|
|
||||||
* Hopefully the performance implications are small.
|
|
||||||
*/
|
|
||||||
struct module *ast_find_module(int (*load_fn)(void));
|
|
||||||
|
|
||||||
/* Local user routines keep track of which channels are using a given module
|
/* Local user routines keep track of which channels are using a given module
|
||||||
resource. They can help make removing modules safer, particularly if
|
resource. They can help make removing modules safer, particularly if
|
||||||
they're in use at the time they have been requested to be removed */
|
they're in use at the time they have been requested to be removed */
|
||||||
|
18
loader.c
18
loader.c
@@ -569,24 +569,6 @@ char *ast_module_helper(const char *line, const char *word, int pos, int state,
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
|
||||||
* \brief Given a function address, find the corresponding module.
|
|
||||||
* This is required as a workaround to the fact that we do not
|
|
||||||
* have a module argument to the load_module() function.
|
|
||||||
* Hopefully the performance implications are small.
|
|
||||||
*/
|
|
||||||
struct module *ast_find_module(int (*load_fn)(void))
|
|
||||||
{
|
|
||||||
struct module *cur;
|
|
||||||
AST_LIST_LOCK(&module_list);
|
|
||||||
AST_LIST_TRAVERSE(&module_list, cur, next) {
|
|
||||||
if (cur->cb.load_module == load_fn)
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
AST_LIST_UNLOCK(&module_list);
|
|
||||||
return cur;
|
|
||||||
}
|
|
||||||
|
|
||||||
int ast_module_reload(const char *name)
|
int ast_module_reload(const char *name)
|
||||||
{
|
{
|
||||||
struct module *cur;
|
struct module *cur;
|
||||||
|
Reference in New Issue
Block a user