From 9becc21691eccf394858c2f6223d32abd9b772db Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 12 Apr 2009 09:05:08 +0000 Subject: Fixed bug 2755230. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@894 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- src/chlists.c | 28 ---------------------------- src/include/inline.h | 13 ------------- 2 files changed, 41 deletions(-) (limited to 'src') diff --git a/src/chlists.c b/src/chlists.c index 82be1923d..24ceb4cc1 100644 --- a/src/chlists.c +++ b/src/chlists.c @@ -104,34 +104,6 @@ Thread *dequeue(Thread *tp) { tp->p_next->p_prev = tp->p_prev; return tp; } - -/** - * @brief Pushes a Thread on top of a stack list. - * - * @param[in] tp the pointer to the thread to be inserted in the list - * @param[in] tlp the pointer to the threads list header - * @note This function is @b not an API. - */ -void list_insert(Thread *tp, ThreadsList *tlp) { - - tp->p_next = tlp->p_next; - tlp->p_next = tp; -} - -/** - * @brief Pops a Thread from the top of a stack list and returns it. - * - * @param[in] tlp the pointer to the threads list header - * @return The removed thread pointer. - * @note The list must be non-empty before calling this function. - * @note This function is @b not an API. - */ -Thread *list_remove(ThreadsList *tlp) { - - Thread *tp = tlp->p_next; - tlp->p_next = tp->p_next; - return tp; -} #endif /* CH_OPTIMIZE_SPEED */ /** @} */ diff --git a/src/include/inline.h b/src/include/inline.h index 45396c9a1..26a4cf3da 100644 --- a/src/include/inline.h +++ b/src/include/inline.h @@ -69,19 +69,6 @@ static INLINE Thread *dequeue(Thread *tp) { tp->p_next->p_prev = tp->p_prev; return tp; } - -static INLINE void list_insert(Thread *tp, ThreadsList *tlp) { - - tp->p_next = tlp->p_next; - tlp->p_next = tp; -} - -static INLINE Thread *list_remove(ThreadsList *tlp) { - - Thread *tp = tlp->p_next; - tlp->p_next = tp->p_next; - return tp; -} #endif /* CH_OPTIMIZE_SPEED */ #endif /* _INLINE_H_ */ -- cgit v1.2.3