From 3bf2bcc8c630aa68ad869bbe44197d8cc2370c72 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 4 Apr 2016 09:36:01 +0200 Subject: score: Delete _Chain_Get() This function is not used in the score. Update #2555. --- cpukit/sapi/include/rtems/chain.h | 9 --------- cpukit/sapi/src/chainprotected.c | 4 ---- 2 files changed, 13 deletions(-) (limited to 'cpukit/sapi') diff --git a/cpukit/sapi/include/rtems/chain.h b/cpukit/sapi/include/rtems/chain.h index 4bbdd530f6..d9254449e1 100644 --- a/cpukit/sapi/include/rtems/chain.h +++ b/cpukit/sapi/include/rtems/chain.h @@ -591,18 +591,9 @@ RTEMS_INLINE_ROUTINE void rtems_chain_extract_unprotected( * * NOTE: It disables interrupts to ensure the atomicity of the get operation. */ -#if defined( RTEMS_SMP ) rtems_chain_node *rtems_chain_get( rtems_chain_control *the_chain ); -#else -RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get( - rtems_chain_control *the_chain -) -{ - return _Chain_Get( the_chain ); -} -#endif /** * @brief See _Chain_Get_unprotected(). diff --git a/cpukit/sapi/src/chainprotected.c b/cpukit/sapi/src/chainprotected.c index e3ae7fd21f..01356665a6 100644 --- a/cpukit/sapi/src/chainprotected.c +++ b/cpukit/sapi/src/chainprotected.c @@ -40,8 +40,6 @@ void rtems_chain_extract( rtems_chain_node *node ) chain_release( &lock_context ); } -#if defined( RTEMS_SMP ) - rtems_chain_node *rtems_chain_get( rtems_chain_control *chain ) { rtems_chain_node *node; @@ -54,8 +52,6 @@ rtems_chain_node *rtems_chain_get( rtems_chain_control *chain ) return node; } -#endif /* defined( RTEMS_SMP ) */ - void rtems_chain_insert( rtems_chain_node *after_node, rtems_chain_node *node ) { rtems_interrupt_lock_context lock_context; -- cgit v1.2.3