Remove g_thread_functions_for_glib_use_old
authorRyan Lortie <desrt@desrt.ca>
Mon, 19 Sep 2011 04:11:46 +0000 (00:11 -0400)
committerRyan Lortie <desrt@desrt.ca>
Wed, 21 Sep 2011 20:06:55 +0000 (16:06 -0400)
This has been unused for a while and it should definitely go away now
that g_thread_functions_for_glib_use is back in gthread.c.

glib/gthread.c

index 22f2fe215e4863e85cf5628fdc43d573b01f36f8..e46497a8ca818f459c021ed7663a2758db629d67 100644 (file)
@@ -348,16 +348,6 @@ gboolean g_threads_got_initialized = FALSE;
  * doing.</para></note>
  **/
 
-/* IMPLEMENTATION NOTE:
- *
- * g_thread_functions_for_glib_use is a global symbol that gets used by
- * most of the "primitive" threading calls.  g_mutex_lock(), for
- * example, is just a macro that calls the appropriate virtual function
- * out of this table.
- *
- * For that reason, all of those macros are documented here.
- */
-static GThreadFunctions g_thread_functions_for_glib_use_old = {
 /* GMutex Virtual Functions {{{2 ------------------------------------------ */
 
 /**
@@ -457,12 +447,6 @@ static GThreadFunctions g_thread_functions_for_glib_use_old = {
  * A #GMutex should only be accessed via the following functions.
  **/
 
-  (GMutex*(*)())g_thread_fail,
-  NULL,
-  NULL,
-  NULL,
-  NULL,
-
 /* GCond Virtual Functions {{{2 ------------------------------------------ */
 
 /**
@@ -525,13 +509,6 @@ static GThreadFunctions g_thread_functions_for_glib_use_old = {
  * A #GCond should only be accessed via the following functions.
  */
 
-  (GCond*(*)())g_thread_fail,
-  NULL,
-  NULL,
-  NULL,
-  NULL,
-  NULL,
-
 /* GPrivate Virtual Functions {{{2 --------------------------------------- */
 
 /**
@@ -588,10 +565,6 @@ static GThreadFunctions g_thread_functions_for_glib_use_old = {
  * use them as if they were functions.</para></note>
  **/
 
-  (GPrivate*(*)(GDestroyNotify))g_thread_fail,
-  NULL,
-  NULL,
-
 /* GThread Virtual Functions {{{2 ---------------------------------------- */
 /**
  * GThread:
@@ -624,18 +597,6 @@ static GThreadFunctions g_thread_functions_for_glib_use_old = {
  * Deprecated:2.32: thread priorities no longer have any effect.
  **/
 
-  (void(*)(GThreadFunc, gpointer, gulong,
-          gboolean, gboolean, GThreadPriority,
-          gpointer, GError**))g_thread_fail,
-
-  NULL,                                        /* thread_yield */
-  NULL,                                        /* thread_join */
-  NULL,                                        /* thread_exit */
-  NULL,                                        /* thread_set_priority */
-  NULL,                                        /* thread_self */
-  NULL                                         /* thread_equal */
-};
-
 /* Local Data {{{1 -------------------------------------------------------- */
 
 static GMutex    g_once_mutex = G_MUTEX_INIT;