diff --git a/glib/gthread-posix.c b/glib/gthread-posix.c index 9e8617988..6954f3ff1 100644 --- a/glib/gthread-posix.c +++ b/glib/gthread-posix.c @@ -1146,13 +1146,6 @@ g_system_thread_self (gpointer thread) *(pthread_t*)thread = pthread_self(); } -gboolean -g_system_thread_equal (gpointer thread1, - gpointer thread2) -{ - return (pthread_equal (*(pthread_t*)thread1, *(pthread_t*)thread2) != 0); -} - void g_system_thread_set_name (const gchar *name) { diff --git a/glib/gthread-win32.c b/glib/gthread-win32.c index 245a4fbaa..c2d0b7e66 100644 --- a/glib/gthread-win32.c +++ b/glib/gthread-win32.c @@ -563,13 +563,6 @@ g_system_thread_join (gpointer thread) g_free (target); } -gboolean -g_system_thread_equal (gpointer thread1, - gpointer thread2) -{ - return ((GSystemThread*)thread1)->dummy_pointer == ((GSystemThread*)thread2)->dummy_pointer; -} - void g_system_thread_set_name (const gchar *name) { diff --git a/glib/gthreadprivate.h b/glib/gthreadprivate.h index 5ed180c5f..f9cbb7ce4 100644 --- a/glib/gthreadprivate.h +++ b/glib/gthreadprivate.h @@ -29,15 +29,6 @@ G_BEGIN_DECLS -/* System thread identifier comparison and assignment */ -#if GLIB_SIZEOF_SYSTEM_THREAD == SIZEOF_VOID_P -# define g_system_thread_assign(dest, src) \ - ((dest).dummy_pointer = (src).dummy_pointer) -#else /* GLIB_SIZEOF_SYSTEM_THREAD != SIZEOF_VOID_P */ -# define g_system_thread_assign(dest, src) \ - (memcpy (&(dest), &(src), GLIB_SIZEOF_SYSTEM_THREAD)) -#endif /* GLIB_SIZEOF_SYSTEM_THREAD == SIZEOF_VOID_P */ - typedef struct _GRealThread GRealThread; typedef void (*GThreadSetup) (GRealThread *thread);