summaryrefslogtreecommitdiff
path: root/src/object.c
diff options
context:
space:
mode:
authorbernard.xiong <[email protected]>2010-05-03 23:17:25 +0000
committerbernard.xiong <[email protected]>2010-05-03 23:17:25 +0000
commitfca4e1a71986cee5f8e54d664fd0a67e466c9084 (patch)
tree2ea1577edf8c3df12a55046c9a57852e7f606b1f /src/object.c
parent16f7ea2f957efcd4afe7ccf62e128362ad3867ec (diff)
remove rt_object_find function.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@690 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'src/object.c')
-rw-r--r--src/object.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/object.c b/src/object.c
index e9d45f3bbc..559abf72e4 100644
--- a/src/object.c
+++ b/src/object.c
@@ -335,35 +335,6 @@ void rt_object_delete(rt_object_t object)
#endif
/**
- * This fucntion will find the object id by specified object name
- *
- * @param type the type of object
- * @param name the specified object name
- *
- * @return object id for successful
- */
-rt_object_t rt_object_find(enum rt_object_class_type type, const char* name)
-{
- struct rt_object_information *information;
- struct rt_object* object;
- struct rt_list_node* node;
-
- information = &rt_object_container[type];
-
- for (node = information->object_list.next; node != &(information->object_list); node = node->next)
- {
- object = rt_list_entry(node, struct rt_object, list);
- if (rt_strncmp(object->name, name, RT_NAME_MAX) == 0)
- {
- return object;
- }
- }
-
- /* not found */
- return RT_NULL;
-}
-
-/**
* This function will judge the object is system object or not.
* Normally, the system object is a static object and the type
* of object set to RT_Object_Class_Static.