summaryrefslogtreecommitdiffstats
path: root/cpukit/sapi
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-04 09:24:47 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-06 09:08:23 +0200
commitc13038798501933e9ee33bbfa7f49010281c5158 (patch)
tree343c1dea3acceb53a76849fc35d3b8c55004e3d5 /cpukit/sapi
parentscore: Delete _Chain_Append_with_empty_check() (diff)
downloadrtems-c13038798501933e9ee33bbfa7f49010281c5158.tar.bz2
score: Delete _Chain_Prepend_with_empty_check()
This function is not used in the score. Update #2555.
Diffstat (limited to 'cpukit/sapi')
-rw-r--r--cpukit/sapi/include/rtems/chain.h10
-rw-r--r--cpukit/sapi/src/chainprotected.c4
2 files changed, 2 insertions, 12 deletions
diff --git a/cpukit/sapi/include/rtems/chain.h b/cpukit/sapi/include/rtems/chain.h
index 01d743f972..887623be7f 100644
--- a/cpukit/sapi/include/rtems/chain.h
+++ b/cpukit/sapi/include/rtems/chain.h
@@ -763,20 +763,10 @@ bool rtems_chain_append_with_empty_check(
* @retval true The chain was empty before the prepend.
* @retval false The chain contained at least one node before the prepend.
*/
-#if defined( RTEMS_SMP )
bool rtems_chain_prepend_with_empty_check(
rtems_chain_control *chain,
rtems_chain_node *node
);
-#else
-RTEMS_INLINE_ROUTINE bool rtems_chain_prepend_with_empty_check(
- rtems_chain_control *chain,
- rtems_chain_node *node
-)
-{
- return _Chain_Prepend_with_empty_check( chain, node );
-}
-#endif
/**
* @brief Tries to get the first @a node and check if the @a chain is empty
diff --git a/cpukit/sapi/src/chainprotected.c b/cpukit/sapi/src/chainprotected.c
index 51842f4d13..087c8e7fb8 100644
--- a/cpukit/sapi/src/chainprotected.c
+++ b/cpukit/sapi/src/chainprotected.c
@@ -104,8 +104,6 @@ bool rtems_chain_append_with_empty_check(
return was_empty;
}
-#if defined( RTEMS_SMP )
-
bool rtems_chain_prepend_with_empty_check(
rtems_chain_control *chain,
rtems_chain_node *node
@@ -121,6 +119,8 @@ bool rtems_chain_prepend_with_empty_check(
return was_empty;
}
+#if defined( RTEMS_SMP )
+
bool rtems_chain_get_with_empty_check(
rtems_chain_control *chain,
rtems_chain_node **node