diff options
Diffstat (limited to 'src/idle.c')
| -rw-r--r-- | src/idle.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/idle.c b/src/idle.c index ecd894b8e2..88415e4e21 100644 --- a/src/idle.c +++ b/src/idle.c @@ -175,24 +175,6 @@ void rt_thread_idle_excute(void) /* delete thread object */ rt_object_delete((rt_object_t)thread); #endif - -#ifdef RT_USING_MODULE - if (module != RT_NULL) - { - extern rt_err_t rt_module_destroy(rt_module_t module); - - /* if sub thread list and main thread are all empty */ - if ((module->module_thread == RT_NULL) && - rt_list_isempty(&module->module_object[RT_Object_Class_Thread].object_list)) - { - module->nref --; - } - - /* destroy module */ - if (module->nref == 0) - rt_module_destroy(module); - } -#endif } } |
