[rtems commit] score: Delete unused function parameter

Sebastian Huber sebh at rtems.org
Mon Aug 26 07:57:27 UTC 2013


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Aug 23 11:57:11 2013 +0200

score: Delete unused function parameter

---

 cpukit/score/include/rtems/score/threadqimpl.h |    6 ++----
 cpukit/score/src/threadqextract.c              |    4 ++--
 cpukit/score/src/threadqextractfifo.c          |    1 -
 cpukit/score/src/threadqextractpriority.c      |    1 -
 cpukit/score/src/threadqrequeue.c              |    2 +-
 5 files changed, 5 insertions(+), 9 deletions(-)

diff --git a/cpukit/score/include/rtems/score/threadqimpl.h b/cpukit/score/include/rtems/score/threadqimpl.h
index 11de278..78376b0 100644
--- a/cpukit/score/include/rtems/score/threadqimpl.h
+++ b/cpukit/score/include/rtems/score/threadqimpl.h
@@ -266,7 +266,6 @@ Thread_blocking_operation_States _Thread_queue_Enqueue_priority (
  *  @retval false Otherwise.
  */
 bool _Thread_queue_Extract_priority_helper(
-  Thread_queue_Control *the_thread_queue,
   Thread_Control       *the_thread,
   bool                  requeuing
 );
@@ -277,8 +276,8 @@ bool _Thread_queue_Extract_priority_helper(
  * This macro wraps the underlying call and hides the requeuing argument.
  */
 
-#define _Thread_queue_Extract_priority( _the_thread_queue, _the_thread ) \
-  _Thread_queue_Extract_priority_helper( _the_thread_queue, _the_thread, false )
+#define _Thread_queue_Extract_priority( _the_thread ) \
+  _Thread_queue_Extract_priority_helper( _the_thread, false )
 /**
  *  @brief Get highest priority thread on the_thread_queue.
  *
@@ -339,7 +338,6 @@ Thread_blocking_operation_States _Thread_queue_Enqueue_fifo (
  *  and cancels any timeouts associated with this blocking.
  */
 bool _Thread_queue_Extract_fifo(
-  Thread_queue_Control *the_thread_queue,
   Thread_Control       *the_thread
 );
 
diff --git a/cpukit/score/src/threadqextract.c b/cpukit/score/src/threadqextract.c
index b2da4f0..9ea9cba 100644
--- a/cpukit/score/src/threadqextract.c
+++ b/cpukit/score/src/threadqextract.c
@@ -31,8 +31,8 @@ bool _Thread_queue_Extract(
    * is a macro and the underlying methods do not have the same signature.
    */
   if  ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY )
-    return _Thread_queue_Extract_priority( the_thread_queue, the_thread );
+    return _Thread_queue_Extract_priority( the_thread );
   else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */
-    return _Thread_queue_Extract_fifo( the_thread_queue, the_thread );
+    return _Thread_queue_Extract_fifo( the_thread );
 
 }
diff --git a/cpukit/score/src/threadqextractfifo.c b/cpukit/score/src/threadqextractfifo.c
index 21c9827..0cc1ee7 100644
--- a/cpukit/score/src/threadqextractfifo.c
+++ b/cpukit/score/src/threadqextractfifo.c
@@ -26,7 +26,6 @@
 #include <rtems/score/watchdogimpl.h>
 
 bool _Thread_queue_Extract_fifo(
-  Thread_queue_Control *the_thread_queue __attribute__((unused)),
   Thread_Control       *the_thread
 )
 {
diff --git a/cpukit/score/src/threadqextractpriority.c b/cpukit/score/src/threadqextractpriority.c
index d22fdf2..09a2f90 100644
--- a/cpukit/score/src/threadqextractpriority.c
+++ b/cpukit/score/src/threadqextractpriority.c
@@ -25,7 +25,6 @@
 #include <rtems/score/watchdogimpl.h>
 
 bool _Thread_queue_Extract_priority_helper(
-  Thread_queue_Control *the_thread_queue __attribute__((unused)),
   Thread_Control       *the_thread,
   bool                  requeuing
 )
diff --git a/cpukit/score/src/threadqrequeue.c b/cpukit/score/src/threadqrequeue.c
index 840699e..829e3cd 100644
--- a/cpukit/score/src/threadqrequeue.c
+++ b/cpukit/score/src/threadqrequeue.c
@@ -45,7 +45,7 @@ void _Thread_queue_Requeue(
     _ISR_Disable( level );
     if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
       _Thread_queue_Enter_critical_section( tq );
-      _Thread_queue_Extract_priority_helper( tq, the_thread, true );
+      _Thread_queue_Extract_priority_helper( the_thread, true );
       (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored );
     }
     _ISR_Enable( level );




More information about the vc mailing list