]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
remove lingering code that is not needed anymore
authorBrian West <brian@freeswitch.org>
Wed, 1 Apr 2009 03:17:27 +0000 (03:17 +0000)
committerBrian West <brian@freeswitch.org>
Wed, 1 Apr 2009 03:17:27 +0000 (03:17 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12862 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/languages/mod_lua/mod_lua.cpp
src/mod/languages/mod_perl/mod_perl.c
src/mod/languages/mod_python/mod_python.c
src/mod/languages/mod_spidermonkey/mod_spidermonkey.c

index 44686df707ee5d1fe9e526d48726c150efc68487..5034babc7a9acd3fd2a51d74d1e3050bb599afb8 100644 (file)
@@ -44,7 +44,6 @@ SWITCH_MODULE_DEFINITION_EX(mod_lua, mod_lua_load, mod_lua_shutdown, NULL, SMODF
 static struct {
        switch_memory_pool_t *pool;
        char *xml_handler;
-       switch_event_node_t *node;
 } globals;
 
 int luaopen_freeswitch(lua_State * L);
@@ -461,7 +460,6 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_lua_load)
 
 SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_lua_shutdown)
 {
-       switch_event_unbind(&globals.node);
        return SWITCH_STATUS_SUCCESS;
 }
 
index 0616078208cf1759eac5e79039f6470da94798b2..0b40abf918f6477ccb70eaaf89515e8688f1a54c 100644 (file)
@@ -54,7 +54,6 @@ static struct {
        PerlInterpreter *my_perl;
        switch_memory_pool_t *pool;
        char *xml_handler;
-       switch_event_node_t *node;
 } globals;
 
 
index e31a8275dfaa79d39026db81a6e6519ecbfb24e4..6aee93e579a90a6e2fde10f5ef2d72b8de70b1ca 100644 (file)
@@ -57,7 +57,6 @@ SWITCH_MODULE_DEFINITION_EX(mod_python, mod_python_load, mod_python_shutdown, NU
 static struct {
        switch_memory_pool_t *pool;
        char *xml_handler;
-       switch_event_node_t *node;
 } globals;
 
 static void eval_some_python(const char *funcname, char *args, switch_core_session_t *session, switch_stream_handle_t *stream, switch_event_t *params, char **str)
@@ -412,7 +411,7 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_python_shutdown)
 
        Py_Finalize();
        PyEval_ReleaseLock();
-       switch_event_unbind(&globals.node);
+
        return SWITCH_STATUS_UNLOAD;
 
 }
index 4750b8551f01e095741f2e38f046ed48fcb13f00..65634cb44c151ef06a60e7cb3414b057019ef19a 100644 (file)
@@ -95,7 +95,6 @@ static struct {
        FILE *gOutFile;
        int stackDummy;
        JSRuntime *rt;
-       switch_event_node_t *node;
 } globals;
 
 static JSClass global_class = {
@@ -3723,7 +3722,7 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_spidermonkey_shutdown)
        //JS_DestroyRuntime(globals.rt);
        
        curl_global_cleanup();
-       switch_event_unbind(&globals.node);
+
        switch_core_hash_destroy(&module_manager.mod_hash);
        switch_core_hash_destroy(&module_manager.load_hash);
        return SWITCH_STATUS_SUCCESS;