From e19102edd50235a26417d0279001692dcad16766 Mon Sep 17 00:00:00 2001 From: "bernard.xiong@gmail.com" Date: Fri, 23 Mar 2012 06:55:03 +0000 Subject: [PATCH] remove rt_list_isempty function. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2006 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- components/finsh/cmd.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/components/finsh/cmd.c b/components/finsh/cmd.c index d6edef00da..a96463ed9b 100644 --- a/components/finsh/cmd.c +++ b/components/finsh/cmd.c @@ -30,13 +30,6 @@ #include #include "finsh.h" -// Copy from kservice.h because we can not use it out of the kernel. -// Ugly. Should let kservice.h available for applications? -rt_inline int rt_list_isempty(const rt_list_t *l) -{ - return l->next == l; -} - rt_inline unsigned int rt_list_len(const rt_list_t *l) { unsigned int len = 0; -- GitLab