diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-04-12 09:05:08 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-04-12 09:05:08 +0000 |
commit | 9becc21691eccf394858c2f6223d32abd9b772db (patch) | |
tree | e4d15f209f90b30e429c5dfbcb129f8ca1ca3716 | |
parent | c1c46107187ce608b97c04f4ab459782058ed427 (diff) | |
download | ChibiOS-9becc21691eccf394858c2f6223d32abd9b772db.tar.gz ChibiOS-9becc21691eccf394858c2f6223d32abd9b772db.tar.bz2 ChibiOS-9becc21691eccf394858c2f6223d32abd9b772db.zip |
Fixed bug 2755230.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@894 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | readme.txt | 2 | ||||
-rw-r--r-- | src/chlists.c | 28 | ||||
-rw-r--r-- | src/include/inline.h | 13 |
3 files changed, 2 insertions, 41 deletions
diff --git a/readme.txt b/readme.txt index ad598eefc..efd4be871 100644 --- a/readme.txt +++ b/readme.txt @@ -81,6 +81,8 @@ Win32-MinGW - ChibiOS/RT simulator and demo into a WIN32 process, specific test in the test suite (bug 2755170)(backported in stable branch).
- FIX: Fixed a problem in semaphores test case #2 (bug 2755195)(backported
in stable branch).
+- FIX: Removed usused list functions (bug 2755230)(backported in stable
+ branch).
- NEW: Added a code coverage analysis application under ./tests/coverage.
Currently the test suite explicitly covers about 74% of the kernel code,
it is not bad as a starting point.
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_ */
|