diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-12-12 08:53:32 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-12-13 08:35:21 +0100 |
commit | 782113767f3e60389423c169f5c337ec3fb50feb (patch) | |
tree | 4f9e54b2def4cd74c704049c4c4bce99aa17aed9 /cpukit/score/src/wkspace.c | |
parent | config: Statically allocate MP object controls (diff) | |
download | rtems-782113767f3e60389423c169f5c337ec3fb50feb.tar.bz2 |
score: Remove _Workspace_Allocate_or_fatal_error()
This function is unused.
Update #3735.
Diffstat (limited to 'cpukit/score/src/wkspace.c')
-rw-r--r-- | cpukit/score/src/wkspace.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/cpukit/score/src/wkspace.c b/cpukit/score/src/wkspace.c index bafc0db6d5..0834438dd1 100644 --- a/cpukit/score/src/wkspace.c +++ b/cpukit/score/src/wkspace.c @@ -270,26 +270,3 @@ void _Workspace_Free( #endif _Heap_Free( &_Workspace_Area, block ); } - -void *_Workspace_Allocate_or_fatal_error( - size_t size -) -{ - void *memory; - - memory = _Heap_Allocate( &_Workspace_Area, size ); - #if defined(DEBUG_WORKSPACE) - printk( - "Workspace_Allocate_or_fatal_error(%d) from %p/%p -> %p\n", - size, - __builtin_return_address( 0 ), - __builtin_return_address( 1 ), - memory - ); - #endif - - if ( memory == NULL ) - _Internal_error( INTERNAL_ERROR_WORKSPACE_ALLOCATION ); - - return memory; -} |