[PATCH 18/23] sapi: Delete unused macros

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Nov 6 12:56:40 UTC 2012


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 files changed, 0 insertions(+), 15 deletions(-)

diff --git a/cpukit/sapi/include/rtems/config.h b/cpukit/sapi/include/rtems/config.h
index 494effc..6426121 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)
-- 
1.7.7




More information about the devel mailing list