[asterisk-commits] trunk r19226 - in /trunk: include/asterisk/module.h loader.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Apr 11 09:00:26 MST 2006


Author: rizzo
Date: Tue Apr 11 11:00:23 2006
New Revision: 19226

URL: http://svn.digium.com/view/asterisk?rev=19226&view=rev
Log:
remove an unused function


Modified:
    trunk/include/asterisk/module.h
    trunk/loader.c

Modified: trunk/include/asterisk/module.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/module.h?rev=19226&r1=19225&r2=19226&view=diff
==============================================================================
--- trunk/include/asterisk/module.h (original)
+++ trunk/include/asterisk/module.h Tue Apr 11 11:00:23 2006
@@ -259,14 +259,6 @@
  * were found.
  */
 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
    resource.  They can help make removing modules safer, particularly if

Modified: trunk/loader.c
URL: http://svn.digium.com/view/asterisk/trunk/loader.c?rev=19226&r1=19225&r2=19226&view=diff
==============================================================================
--- trunk/loader.c (original)
+++ trunk/loader.c Tue Apr 11 11:00:23 2006
@@ -567,24 +567,6 @@
 		}
 	}
 	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)



More information about the asterisk-commits mailing list