From e39fa07cecb00850f4f5a1ff5a53ca06edd6f50b Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 6 Nov 2012 12:13:29 +0100 Subject: [PATCH] sapi: Delete unused macros Delete rtems_configuration_get_table(), rtems_configuration_set_stack_space_size(), rtems_configuration_set_work_space_size(), and rtems_configuration_set_microseconds_per_tick(). --- cpukit/sapi/include/rtems/config.h | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/cpukit/sapi/include/rtems/config.h b/cpukit/sapi/include/rtems/config.h index 494effce95..6426121bf4 100644 --- a/cpukit/sapi/include/rtems/config.h +++ b/cpukit/sapi/include/rtems/config.h @@ -247,9 +247,6 @@ extern rtems_configuration_table Configuration; * or the exact format of the configuration table. */ -#define rtems_configuration_get_table() \ - (&Configuration) - #define rtems_configuration_get_unified_work_area() \ (Configuration.unified_work_area) @@ -259,17 +256,11 @@ extern rtems_configuration_table Configuration; #define rtems_configuration_get_stack_space_size() \ (Configuration.stack_space_size) -#define rtems_configuration_set_stack_space_size( _size ) \ - do { Configuration.stack_space_size = (_size); } while (0) - #define rtems_configuration_get_work_space_size() \ (Configuration.work_space_size + \ (rtems_configuration_get_stack_allocator_avoids_work_space() ? \ 0 : rtems_configuration_get_stack_space_size())) -#define rtems_configuration_set_work_space_size( _size ) \ - do { Configuration.work_space_size = (_size); } while (0) - #define rtems_configuration_get_maximum_extensions() \ (Configuration.maximum_extensions) @@ -279,12 +270,6 @@ extern rtems_configuration_table Configuration; (Configuration.microseconds_per_tick / 1000) #define rtems_configuration_get_nanoseconds_per_tick() \ (Configuration.nanoseconds_per_tick) -#define rtems_configuration_set_microseconds_per_tick( _us ) \ - do { \ - Configuration.microseconds_per_tick = (_us); \ - Configuration.nanoseconds_per_tick = \ - 1000 * Configuration.microseconds_per_tick; \ - } while (0) #define rtems_configuration_get_ticks_per_timeslice() \ (Configuration.ticks_per_timeslice)