From 4bae341dc94c57a812427194c7f49f37bd006bb3 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 20 May 2016 15:01:46 +0200 Subject: score: Delete unused _Objects_Get_isr_disable() Delete now unused Objects_Locations. --- cpukit/score/src/objectgetisr.c | 55 ----------------------------------------- 1 file changed, 55 deletions(-) delete mode 100644 cpukit/score/src/objectgetisr.c (limited to 'cpukit/score/src/objectgetisr.c') diff --git a/cpukit/score/src/objectgetisr.c b/cpukit/score/src/objectgetisr.c deleted file mode 100644 index 71f62fe482..0000000000 --- a/cpukit/score/src/objectgetisr.c +++ /dev/null @@ -1,55 +0,0 @@ -/** - * @file - * - * @brief Object Get Isr Disable - * @ingroup ScoreObject - */ - -/* - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * 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 - -Objects_Control *_Objects_Get_isr_disable( - Objects_Information *information, - Objects_Id id, - Objects_Locations *location, - ISR_lock_Context *lock_context -) -{ - Objects_Control *the_object; - uint32_t index; - - index = id - information->minimum_id + 1; - - if ( information->maximum >= index ) { - _ISR_lock_ISR_disable( lock_context ); - if ( (the_object = information->local_table[ index ]) != NULL ) { - *location = OBJECTS_LOCAL; - return the_object; - } - _ISR_lock_ISR_enable( lock_context ); - *location = OBJECTS_ERROR; - return NULL; - } - - *location = OBJECTS_ERROR; - -#if defined(RTEMS_MULTIPROCESSING) - if ( _Objects_MP_Is_remote( id, information ) ) { - *location = OBJECTS_REMOTE; - } -#endif - - return NULL; -} -- cgit v1.2.3