Remove g_mem_set_vtable
[pspp] / src / ui / gui / main.c
index d2513e8ec8ad6eafe1da3cd1e2aa1cb65d16834c..9bd278d3397965ef1c0b5d8b52d141decc930bdf 100644 (file)
@@ -160,7 +160,7 @@ startup_option_callback (int id, void *show_splash_)
     }
 }
 
-static gboolean
+static gboolean UNUSED
 print_startup_time (gpointer data)
 {
   g_timer_stop (startup);
@@ -171,16 +171,6 @@ print_startup_time (gpointer data)
   return FALSE;
 }
 
-static GMemVTable vtable =
-  {
-    xmalloc,
-    xrealloc,
-    free,
-    xcalloc,
-    malloc,
-    realloc
-  };
-
 #ifdef __APPLE__
 static const bool apple = true;
 #else
@@ -257,8 +247,6 @@ main (int argc, char *argv[])
 
   set_program_name (argv[0]);
 
-  g_mem_set_vtable (&vtable);
-
 #if !GLIB_CHECK_VERSION(2,32,0)
   /* g_thread_init() was required before glib 2.32, but it is deprecated since
      then and calling it yields a compile-time warning. */