From 782113767f3e60389423c169f5c337ec3fb50feb Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 12 Dec 2019 08:53:32 +0100 Subject: score: Remove _Workspace_Allocate_or_fatal_error() This function is unused. Update #3735. --- cpukit/include/rtems/score/interr.h | 2 +- cpukit/include/rtems/score/wkspace.h | 15 --------------- 2 files changed, 1 insertion(+), 16 deletions(-) (limited to 'cpukit/include/rtems') diff --git a/cpukit/include/rtems/score/interr.h b/cpukit/include/rtems/score/interr.h index 544ad7ab9e..e57c415eed 100644 --- a/cpukit/include/rtems/score/interr.h +++ b/cpukit/include/rtems/score/interr.h @@ -166,7 +166,7 @@ typedef enum { /* INTERNAL_ERROR_NO_CONFIGURATION_TABLE = 0, */ /* INTERNAL_ERROR_NO_CPU_TABLE = 1, */ INTERNAL_ERROR_TOO_LITTLE_WORKSPACE = 2, - INTERNAL_ERROR_WORKSPACE_ALLOCATION = 3, + /* INTERNAL_ERROR_WORKSPACE_ALLOCATION = 3, */ /* INTERNAL_ERROR_INTERRUPT_STACK_TOO_SMALL = 4, */ INTERNAL_ERROR_THREAD_EXITTED = 5, INTERNAL_ERROR_INCONSISTENT_MP_INFORMATION = 6, diff --git a/cpukit/include/rtems/score/wkspace.h b/cpukit/include/rtems/score/wkspace.h index 41ea1d2e24..8428c9f957 100644 --- a/cpukit/include/rtems/score/wkspace.h +++ b/cpukit/include/rtems/score/wkspace.h @@ -101,21 +101,6 @@ void _Workspace_Free( void *block ); -/** - * @brief Allocates workspace or fails with fatal error. - * - * This routine returns the address of a block of memory of @a size - * bytes. If a block of the appropriate size cannot be allocated - * from the workspace, then the internal error handler is invoked. - * - * @param size is the desired number of bytes to allocate - * - * @return The starting address of the allocated memory. - */ -void *_Workspace_Allocate_or_fatal_error( - size_t size -); - /** * @brief Duplicates string with memory from the workspace. * -- cgit v1.2.3