gthread.h: drop the vtable access macros
authorRyan Lortie <desrt@desrt.ca>
Mon, 19 Sep 2011 04:01:29 +0000 (00:01 -0400)
committerRyan Lortie <desrt@desrt.ca>
Wed, 21 Sep 2011 20:06:55 +0000 (16:06 -0400)
We're finally free of these.  Drop them.

glib/gthread.h

index 90ac704..cb6ccac 100644 (file)
@@ -171,20 +171,6 @@ gboolean g_thread_get_initialized (void);
 /* internal function for fallback static mutex implementation */
 GMutex* g_static_mutex_get_mutex_impl   (GMutex **mutex);
 
-/* shorthands for conditional and unconditional function calls */
-
-#define G_THREAD_UF(op, arglist)                                       \
-    (*g_thread_functions_for_glib_use . op) arglist
-#define G_THREAD_CF(op, fail, arg)                                     \
-    (g_thread_supported () ? G_THREAD_UF (op, arg) : (fail))
-#define G_THREAD_ECF(op, fail, mutex, type)                            \
-    (g_thread_supported () ?                                           \
-      ((type(*)(GMutex*, const gulong, gchar const*))                  \
-      (*g_thread_functions_for_glib_use . op))                         \
-     (mutex, G_MUTEX_DEBUG_MAGIC, G_STRLOC) : (fail))
-
-
-
 #if defined(G_THREADS_MANDATORY)
 #define g_thread_supported()     1
 #else