diff --git a/src/include/internals.h b/src/include/internals.h index 09e830e4..283444a6 100644 --- a/src/include/internals.h +++ b/src/include/internals.h @@ -782,20 +782,6 @@ extern pthread_key_t __mg_threadinfo_key; #define TEST_CANCEL pthread_testcancel() int __mg_join_all_message_threads (void); -static inline MSGQUEUE* getMsgQueueForThisThread (void) -{ - MSGQUEUE* pMsgQueue; - - pMsgQueue = (MSGQUEUE*)pthread_getspecific (__mg_threadinfo_key); -#ifdef __VXWORKS__ - if (pMsgQueue == (void *)-1) { - pMsgQueue = NULL; - } -#endif - - return pMsgQueue; -} - static inline BOOL createThreadInfoKey (void) { if (pthread_key_create (&__mg_threadinfo_key, NULL))