summaryrefslogtreecommitdiff
path: root/src/idle.c
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2018-06-10 17:56:02 +0800
committerBernard Xiong <[email protected]>2018-06-10 17:56:02 +0800
commit682da9b249c8019c078b277742a6b36deb2af7b2 (patch)
tree1ee2065957a903072ea6b983c80bedfbe84b0e8d /src/idle.c
parentc83c8d84625b3095182690544cddeae637711e39 (diff)
[Kernel] Remove object container in module feature.
Diffstat (limited to 'src/idle.c')
-rw-r--r--src/idle.c18
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
}
}