summaryrefslogtreecommitdiff
path: root/components/finsh
diff options
context:
space:
mode:
authorarmink <[email protected]>2017-10-19 09:28:17 +0800
committerarmink <[email protected]>2017-10-19 09:28:17 +0800
commitd3ac388846f8e8ba0592c25e3171fa6562c8f2b2 (patch)
tree3212a797396be6bc1345d82192a7fcd2c62da785 /components/finsh
parent121b72df71485fd2ce8dc8cebc5e71c764bb29c6 (diff)
[rtservice] Add `rt_list_len` and `rt_slist_len` to rtservice.h .
Diffstat (limited to 'components/finsh')
-rw-r--r--components/finsh/cmd.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/components/finsh/cmd.c b/components/finsh/cmd.c
index 9197c90ad1..995ec2a109 100644
--- a/components/finsh/cmd.c
+++ b/components/finsh/cmd.c
@@ -49,19 +49,6 @@
#include <rtthread.h>
#include "finsh.h"
-rt_inline unsigned int rt_list_len(const rt_list_t *l)
-{
- unsigned int len = 0;
- const rt_list_t *p = l;
- while (p->next != l)
- {
- p = p->next;
- len ++;
- }
-
- return len;
-}
-
long hello(void)
{
rt_kprintf("Hello RT-Thread!\n");