summaryrefslogtreecommitdiffstats
path: root/cpukit/score
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-04 08:46:27 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-06 09:08:23 +0200
commit88f4157c93e3e2b91897b9925cea04b9c384a3c2 (patch)
treef63aa18d80c88b24c593757ca81ae4168e660328 /cpukit/score
parentscore: Delete _Chain_Prepend() (diff)
downloadrtems-88f4157c93e3e2b91897b9925cea04b9c384a3c2.tar.bz2
score: Delete _Chain_Append_with_empty_check()
This function is not used in the score. Update #2555.
Diffstat (limited to 'cpukit/score')
-rw-r--r--cpukit/score/Makefile.am2
-rw-r--r--cpukit/score/include/rtems/score/chainimpl.h19
-rw-r--r--cpukit/score/src/chainappendempty.c44
3 files changed, 1 insertions, 64 deletions
diff --git a/cpukit/score/Makefile.am b/cpukit/score/Makefile.am
index eb5bfa39cd..93490dc80c 100644
--- a/cpukit/score/Makefile.am
+++ b/cpukit/score/Makefile.am
@@ -347,7 +347,7 @@ libscore_a_SOURCES += src/userextaddset.c \
## STD_C_FILES
libscore_a_SOURCES += src/chain.c src/chainappend.c \
src/chainextract.c src/chainget.c src/chaininsert.c \
- src/chainappendempty.c src/chainprependempty.c src/chaingetempty.c \
+ src/chainprependempty.c src/chaingetempty.c \
src/chainnodecount.c \
src/debugisthreaddispatchingallowed.c \
src/interr.c src/isr.c src/wkspace.c src/wkstringduplicate.c
diff --git a/cpukit/score/include/rtems/score/chainimpl.h b/cpukit/score/include/rtems/score/chainimpl.h
index 8b888a7540..4153107473 100644
--- a/cpukit/score/include/rtems/score/chainimpl.h
+++ b/cpukit/score/include/rtems/score/chainimpl.h
@@ -145,25 +145,6 @@ void _Chain_Append(
);
/**
- * @brief Append a node and check if the chain was empty before.
- *
- * This routine appends the_node onto the end of the_chain.
- *
- * @param[in] the_chain is the chain to be operated upon.
- * @param[in] the_node is the node to be appended.
- *
- * @note It disables interrupts to ensure the atomicity of the append
- * operation.
- *
- * @retval true The chain was empty before.
- * @retval false The chain contained at least one node before.
- */
-bool _Chain_Append_with_empty_check(
- Chain_Control *the_chain,
- Chain_Node *the_node
-);
-
-/**
* @brief Prepend a node and check if the chain was empty before.
*
* This routine prepends the_node onto the front of the_chain.
diff --git a/cpukit/score/src/chainappendempty.c b/cpukit/score/src/chainappendempty.c
deleted file mode 100644
index 7f5d924508..0000000000
--- a/cpukit/score/src/chainappendempty.c
+++ /dev/null
@@ -1,44 +0,0 @@
-/**
- * @file
- *
- * @ingroup ScoreChain
- *
- * @brief _Chain_Append_with_empty_check() implementation.
- */
-
-/*
- * Copyright (c) 2010 embedded brains GmbH. All rights reserved.
- *
- * embedded brains GmbH
- * Obere Lagerstr. 30
- * 82178 Puchheim
- * Germany
- * <rtems@embedded-brains.de>
- *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rtems.org/license/LICENSE.
- */
-
-#if HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <rtems/system.h>
-#include <rtems/score/chainimpl.h>
-#include <rtems/score/isr.h>
-
-bool _Chain_Append_with_empty_check(
- Chain_Control *chain,
- Chain_Node *node
-)
-{
- ISR_Level level;
- bool was_empty;
-
- _ISR_Disable( level );
- was_empty = _Chain_Append_with_empty_check_unprotected( chain, node );
- _ISR_Enable( level );
-
- return was_empty;
-}