[rtems commit] rtems: Delete unused functions

Sebastian Huber sebh at rtems.org
Tue Jul 16 18:07:35 UTC 2013


Module:    rtems
Branch:    master
Commit:    b71cdd25832414c9820eccba2495b059d2faf4f7
Changeset: http://git.rtems.org/rtems/commit/?id=b71cdd25832414c9820eccba2495b059d2faf4f7

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Jul 16 17:34:37 2013 +0200

rtems: Delete unused functions

---

 cpukit/rtems/include/rtems/rtems/sem.h  |   13 -------------
 cpukit/rtems/inline/rtems/rtems/sem.inl |   12 ------------
 2 files changed, 0 insertions(+), 25 deletions(-)

diff --git a/cpukit/rtems/include/rtems/rtems/sem.h b/cpukit/rtems/include/rtems/rtems/sem.h
index dafd1ea..046c0f2 100644
--- a/cpukit/rtems/include/rtems/rtems/sem.h
+++ b/cpukit/rtems/include/rtems/rtems/sem.h
@@ -239,19 +239,6 @@ rtems_status_code rtems_semaphore_flush(
 );
 
 /**
- *  @brief _Semaphore_Seize
- *
- *  This routine attempts to receive a unit from the_semaphore.
- *  If a unit is available or if the RTEMS_NO_WAIT option is enabled in
- *  option_set, then the routine returns.  Otherwise, the calling task
- *  is blocked until a unit becomes available.
- */
-bool _Semaphore_Seize(
-  Semaphore_Control *the_semaphore,
-  uint32_t           option_set
-);
-
-/**
  * @brief Semaphore Translate Core Mutex Return Code
  *
  * This function returns a RTEMS status code based on the mutex
diff --git a/cpukit/rtems/inline/rtems/rtems/sem.inl b/cpukit/rtems/inline/rtems/rtems/sem.inl
index 22699e6..d1cdbb2 100644
--- a/cpukit/rtems/inline/rtems/rtems/sem.inl
+++ b/cpukit/rtems/inline/rtems/rtems/sem.inl
@@ -92,18 +92,6 @@ RTEMS_INLINE_ROUTINE Semaphore_Control *_Semaphore_Get_interrupt_disable (
     _Objects_Get_isr_disable( &_Semaphore_Information, id, location, level );
 }
 
-/**
- *  @brief Checks if the_semaphore is NULL.
- *
- *  This function returns TRUE if the_semaphore is NULL and FALSE otherwise.
- */
-RTEMS_INLINE_ROUTINE bool _Semaphore_Is_null (
-  Semaphore_Control *the_semaphore
-)
-{
-  return ( the_semaphore == NULL );
-}
-
 /**@}*/
 
 #endif




More information about the vc mailing list