[PATCH 1/7] score: Remove dead code

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Nov 26 13:12:08 UTC 2018


Update #3621.
---
 cpukit/score/src/objectallocate.c | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/cpukit/score/src/objectallocate.c b/cpukit/score/src/objectallocate.c
index 146b5d5976..e09c74c70c 100644
--- a/cpukit/score/src/objectallocate.c
+++ b/cpukit/score/src/objectallocate.c
@@ -23,12 +23,6 @@
 #include <rtems/score/chainimpl.h>
 #include <rtems/score/sysstate.h>
 
-/* #define RTEMS_DEBUG_OBJECT_ALLOCATION */
-
-#if defined(RTEMS_DEBUG_OBJECT_ALLOCATION)
-#include <rtems/bspIo.h>
-#endif
-
 static Objects_Control *_Objects_Get_inactive(
   Objects_Information *information
 )
@@ -85,16 +79,6 @@ Objects_Control *_Objects_Allocate_unprotected(
     }
   }
 
-#if defined(RTEMS_DEBUG_OBJECT_ALLOCATION)
-  if ( !the_object ) {
-    printk(
-      "OBJECT ALLOCATION FAILURE! API/Class %d/%d\n",
-      information->the_api,
-      information->the_class
-    );
-  }
-#endif
-
   return the_object;
 }
 
-- 
2.16.4



More information about the devel mailing list