From 1142043233366f1f64c2e619a0027931edc36b22 Mon Sep 17 00:00:00 2001 From: Wang Renxin Date: Thu, 29 Oct 2015 10:15:12 +0800 Subject: [PATCH] -removed unused function. --- core/my_basic.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/core/my_basic.c b/core/my_basic.c index 912f466..d9abf50 100755 --- a/core/my_basic.c +++ b/core/my_basic.c @@ -824,7 +824,6 @@ static unsigned int _ls_remove(_ls_node_t* list, _ls_node_t* node, _ls_operation static unsigned int _ls_try_remove(_ls_node_t* list, void* info, _ls_compare cmp, _ls_operation op); static unsigned int _ls_foreach(_ls_node_t* list, _ls_operation op); static void _ls_sort(_ls_node_t* list, _ls_compare cmp); -static unsigned int _ls_count(_ls_node_t* list); static bool_t _ls_empty(_ls_node_t* list); static void _ls_clear(_ls_node_t* list); static void _ls_destroy(_ls_node_t* list); @@ -1715,20 +1714,6 @@ void _ls_sort(_ls_node_t* list, _ls_compare cmp) { } } -unsigned int _ls_count(_ls_node_t* list) { - unsigned int result = 0; - - mb_assert(list); - - list = list->next; - while(list) { - list = list->next; - ++result; - } - - return result; -} - bool_t _ls_empty(_ls_node_t* list) { bool_t result = false;