From c6a789998a48d1a1d8a7e1675b873f2b2f440c93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jard=C3=B3n?= Date: Wed, 12 May 2010 03:41:45 +0200 Subject: [PATCH] Remove deprecated gdk_exit() function --- docs/reference/gdk/gdk3-sections.txt | 1 - docs/reference/gdk/tmpl/general.sgml | 14 -------------- gdk/gdk.c | 25 ------------------------- gdk/gdk.h | 3 --- gdk/gdk.symbols | 3 --- 5 files changed, 46 deletions(-) diff --git a/docs/reference/gdk/gdk3-sections.txt b/docs/reference/gdk/gdk3-sections.txt index b25cebaa9f..065a670e4a 100644 --- a/docs/reference/gdk/gdk3-sections.txt +++ b/docs/reference/gdk/gdk3-sections.txt @@ -10,7 +10,6 @@ gdk_parse_args gdk_get_display_arg_name gdk_set_locale gdk_set_sm_client_id -gdk_exit gdk_notify_startup_complete gdk_notify_startup_complete_with_id diff --git a/docs/reference/gdk/tmpl/general.sgml b/docs/reference/gdk/tmpl/general.sgml index eaaf818ab8..40dd4b6ec6 100644 --- a/docs/reference/gdk/tmpl/general.sgml +++ b/docs/reference/gdk/tmpl/general.sgml @@ -109,20 +109,6 @@ locale. @sm_client_id: - - -Exits the application using the exit() system call. - - -This routine is provided mainly for backwards compatibility, since it used to -perform tasks necessary to exit the application cleanly. Those tasks are now -performed in a function which is automatically called on exit (via the use -of g_atexit()). - - -@error_code: the error code to pass to the exit() call. - - diff --git a/gdk/gdk.c b/gdk/gdk.c index 110d662dc7..8fe3c450d3 100644 --- a/gdk/gdk.c +++ b/gdk/gdk.c @@ -386,31 +386,6 @@ gdk_init (int *argc, char ***argv) } } -/* - *-------------------------------------------------------------- - * gdk_exit - * - * Restores the library to an un-itialized state and exits - * the program using the "exit" system call. - * - * Arguments: - * "errorcode" is the error value to pass to "exit". - * - * Results: - * Allocated structures are freed and the program exits - * cleanly. - * - * Side effects: - * - *-------------------------------------------------------------- - */ - -void -gdk_exit (gint errorcode) -{ - exit (errorcode); -} - void gdk_threads_enter (void) { diff --git a/gdk/gdk.h b/gdk/gdk.h index d834bb1622..219298e2ce 100644 --- a/gdk/gdk.h +++ b/gdk/gdk.h @@ -75,9 +75,6 @@ gboolean gdk_init_check (gint *argc, void gdk_add_option_entries_libgtk_only (GOptionGroup *group); void gdk_pre_parse_libgtk_only (void); -#ifndef GDK_DISABLE_DEPRECATED -void gdk_exit (gint error_code); -#endif /* GDK_DISABLE_DEPRECATED */ gchar* gdk_set_locale (void); G_CONST_RETURN char *gdk_get_program_class (void); diff --git a/gdk/gdk.symbols b/gdk/gdk.symbols index b95fe78b31..992d276033 100644 --- a/gdk/gdk.symbols +++ b/gdk/gdk.symbols @@ -132,9 +132,6 @@ gdk_get_display_arg_name gdk_get_program_class gdk_init gdk_init_check -#ifndef GDK_DISABLE_DEPRECATED -gdk_exit -#endif gdk_pre_parse_libgtk_only gdk_parse_args gdk_set_program_class