summaryrefslogtreecommitdiff
path: root/src/object.c
diff options
context:
space:
mode:
authorWBI\nxf44444 <[email protected]>2021-01-04 15:22:50 +0800
committerWBI\nxf44444 <[email protected]>2021-01-04 15:22:50 +0800
commit77fd2c43423614fb8e9962a47918c789d4903c71 (patch)
treea6bd9c284f2e3f51d972a9bef2e4e4b808f935dd /src/object.c
parent361a2aa587a7541b635f62c3892d7b28a8ef228d (diff)
parentb8bd21f6bc5587f99c309de87edffccc195743bb (diff)
add license info header&remove the unnecessary code.
Diffstat (limited to 'src/object.c')
-rw-r--r--src/object.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/object.c b/src/object.c
index 6866d805ca..56263618b3 100644
--- a/src/object.c
+++ b/src/object.c
@@ -192,18 +192,6 @@ void rt_object_put_sethook(void (*hook)(struct rt_object *object))
#endif
/**
- * @ingroup SystemInit
- *
- * This function will initialize system object management.
- *
- * @deprecated since 0.3.0, this function does not need to be invoked
- * in the system initialization.
- */
-void rt_system_object_init(void)
-{
-}
-
-/**
* @addtogroup KernelObject
*/
@@ -485,7 +473,7 @@ void rt_object_delete(rt_object_t object)
RT_OBJECT_HOOK_CALL(rt_object_detach_hook, (object));
/* reset object type */
- object->type = 0;
+ object->type = RT_Object_Class_Null;
/* lock interrupt */
temp = rt_hw_interrupt_disable();