Remove the ithread_exit function

This function is dangerous since it behaved differently on different
platform implementations. It is not used for any actual purpose, and
not currently necessary.

Change-Id: I9702e9943065235c7a7b29dc6c6eeb36212e7ce1
diff --git a/common/ithread.c b/common/ithread.c
index 25a8cd0..8d54070 100644
--- a/common/ithread.c
+++ b/common/ithread.c
@@ -131,26 +131,6 @@
     return 0;
 }
 
-void ithread_exit(void *thread_handle)
-{
-    HANDLE *ppv_thread_handle;
-    HANDLE thread_handle_value;
-    DWORD thread_exit_code;
-
-    if(0 == thread_handle)
-        return;
-
-    ppv_thread_handle = (HANDLE *)thread_handle;
-    thread_handle_value = *ppv_thread_handle;
-    /* Get exit code for thread. If the return value is 0, means thread is busy */
-    if( 0 != GetExitCodeThread(thread_handle_value, &thread_exit_code))
-    {
-        TerminateThread(thread_handle_value, thread_exit_code);
-    }
-
-    return;
-}
-
 WORD32 ithread_get_mutex_struct_size(void)
 {
     return (sizeof(HANDLE));
@@ -358,11 +338,6 @@
     return pthread_join(*pthread_handle, NULL);
 }
 
-void ithread_exit(void *val_ptr)
-{
-    return pthread_exit(val_ptr);
-}
-
 WORD32 ithread_get_mutex_struct_size(void)
 {
     return(sizeof(pthread_mutex_t));
@@ -513,11 +488,6 @@
     return 0;
 }
 
-void ithread_exit(void *val_ptr)
-{
-    return;
-}
-
 WORD32 ithread_mutex_init(void *mutex)
 {
     return 0;
diff --git a/common/ithread.h b/common/ithread.h
index f926f83..3e5aa9c 100644
--- a/common/ithread.h
+++ b/common/ithread.h
@@ -29,7 +29,6 @@
 /*  List of Functions :     ithread_get_handle_size                          */
 /*                          ithread_get_mutex_lock_size                      */
 /*                          ithread_create                                   */
-/*                          ithread_exit                                     */
 /*                          ithread_join                                     */
 /*                          ithread_get_mutex_struct_size                    */
 /*                          ithread_mutex_init                               */
@@ -65,8 +64,6 @@
 
 WORD32  ithread_create(void *thread_handle, void *attribute, void *strt, void *argument);
 
-void    ithread_exit(void *val_ptr);
-
 WORD32  ithread_join(void *thread_id, void ** val_ptr);
 
 WORD32  ithread_get_mutex_struct_size(void);