From: John Darrington Date: Wed, 27 Jan 2016 18:40:16 +0000 (+0100) Subject: Remove g_mem_set_vtable X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp;a=commitdiff_plain;h=a8c96cbb1f8cf84047595f15b47dd407e292325e Remove g_mem_set_vtable This function is deprecated. --- diff --git a/src/ui/gui/main.c b/src/ui/gui/main.c index d1a4798fd1..9bd278d339 100644 --- a/src/ui/gui/main.c +++ b/src/ui/gui/main.c @@ -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. */