From fca4e1a71986cee5f8e54d664fd0a67e466c9084 Mon Sep 17 00:00:00 2001 From: "bernard.xiong" Date: Mon, 3 May 2010 23:17:25 +0000 Subject: remove rt_object_find function. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@690 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- src/object.c | 29 ----------------------------- 1 file changed, 29 deletions(-) (limited to 'src/object.c') diff --git a/src/object.c b/src/object.c index e9d45f3bbc..559abf72e4 100644 --- a/src/object.c +++ b/src/object.c @@ -334,35 +334,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 -- cgit v1.3.1