From d07f582565df840d2169dcb83a3029e6b90176dc Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 15 Jun 2016 07:59:33 +0200 Subject: posix: Remove superfluous code Remove double declarations, useless comments and unused functions. --- cpukit/posix/include/rtems/posix/pthreadimpl.h | 61 -------------------------- 1 file changed, 61 deletions(-) (limited to 'cpukit/posix/include') diff --git a/cpukit/posix/include/rtems/posix/pthreadimpl.h b/cpukit/posix/include/rtems/posix/pthreadimpl.h index 16b0163384..68b605066b 100644 --- a/cpukit/posix/include/rtems/posix/pthreadimpl.h +++ b/cpukit/posix/include/rtems/posix/pthreadimpl.h @@ -51,44 +51,6 @@ extern Thread_Information _POSIX_Threads_Information; */ extern pthread_attr_t _POSIX_Threads_Default_attributes; -/** - * @brief Copy POSIX Thread attribute structure. - * - * This routine copies the attr2 thread attribute structure - * to the attr1 Thread Attribute structure. - * - * @param[in] dst_attr is a pointer to the thread attribute - * structure to copy into. - * - * @param[out] src_attr is a pointer to the thread attribute - * structure to copy from. - */ -RTEMS_INLINE_ROUTINE void _POSIX_Threads_Copy_attributes( - pthread_attr_t *dst_attr, - const pthread_attr_t *src_attr -); - -/** - * @brief Free POSIX control block. - * - * This routine frees a pthread control block to the - * inactive chain of free pthread control blocks. - * - * @param[in] the_pthread is a pointer to the thread to free. - */ -RTEMS_INLINE_ROUTINE void _POSIX_Threads_Free( - Thread_Control *the_pthread -); - -/** - * @brief POSIX threads initialize user threads body. - * - * This routine initializes the thread attributes structure. - */ -RTEMS_INLINE_ROUTINE void _POSIX_Threads_Initialize_attributes( - pthread_attr_t *attr -); - /** * @brief POSIX threads sporadic budget callout. * @@ -155,10 +117,6 @@ RTEMS_INLINE_ROUTINE Thread_Control *_POSIX_Threads_Allocate(void) _Objects_Allocate_unprotected( &_POSIX_Threads_Information.Objects ); } -/* - * _POSIX_Threads_Copy_attributes - */ - RTEMS_INLINE_ROUTINE void _POSIX_Threads_Copy_attributes( pthread_attr_t *dst_attr, const pthread_attr_t *src_attr @@ -173,10 +131,6 @@ RTEMS_INLINE_ROUTINE void _POSIX_Threads_Copy_attributes( #endif } -/* - * _POSIX_Threads_Free - */ - RTEMS_INLINE_ROUTINE void _POSIX_Threads_Free ( Thread_Control *the_pthread ) @@ -184,10 +138,6 @@ RTEMS_INLINE_ROUTINE void _POSIX_Threads_Free ( _Objects_Free( &_POSIX_Threads_Information.Objects, &the_pthread->Object ); } -/* - * _POSIX_Threads_Initialize_attributes - */ - RTEMS_INLINE_ROUTINE void _POSIX_Threads_Initialize_attributes( pthread_attr_t *attr ) @@ -198,17 +148,6 @@ RTEMS_INLINE_ROUTINE void _POSIX_Threads_Initialize_attributes( ); } -/* - * _POSIX_Threads_Is_null - */ - -RTEMS_INLINE_ROUTINE bool _POSIX_Threads_Is_null ( - Thread_Control *the_pthread -) -{ - return !the_pthread; -} - /** @} */ #ifdef __cplusplus -- cgit v1.2.3