pidgin/pidgin

Remove purple_core_quit_cb

16 months ago, Gary Kramlich
739fc280f3b5
Parents 08b6b45431c9
Children c13754d0bd3d
Remove purple_core_quit_cb

No one is using this right now and it might not be an issue anymore anyways.

Testing Done:
Compiled

Reviewed at https://reviews.imfreedom.org/r/2162/
--- a/ChangeLog.API Thu Dec 15 21:06:09 2022 -0600
+++ b/ChangeLog.API Sun Jan 01 01:28:49 2023 -0600
@@ -502,6 +502,7 @@
* purple_core_ensure_single_instance. Check via GApplication
or whatever is appropriate for your UI.
* purple_core_migrate
+ * purple_core_quit_cb
* Removed the general Purple DBus interface
* purple_date_format_full, use g_date_time_format instead.
* purple_date_format_long, use g_date_time_format instead.
--- a/libpurple/core.c Thu Dec 15 21:06:09 2022 -0600
+++ b/libpurple/core.c Sun Jan 01 01:28:49 2023 -0600
@@ -296,14 +296,6 @@
_core = NULL;
}
-gboolean
-purple_core_quit_cb(G_GNUC_UNUSED gpointer unused)
-{
- purple_core_quit();
-
- return FALSE;
-}
-
const char *
purple_core_get_version(void)
{
--- a/libpurple/core.h Thu Dec 15 21:06:09 2022 -0600
+++ b/libpurple/core.h Sun Jan 01 01:28:49 2023 -0600
@@ -55,27 +55,6 @@
void purple_core_quit(void);
/**
- * purple_core_quit_cb:
- * @unused: This argument is for consistency with a timeout callback. It is
- * otherwise unused.
- *
- * Calls purple_core_quit(). This can be used as the function passed to
- * g_timeout_add() when you want to shutdown Purple in a specified amount of
- * time. When shutting down Purple from a plugin, you must use this instead of
- * purple_core_quit(); for an immediate exit, use a timeout value of 0:
- *
- * <programlisting>
- * g_timeout_add(0, purple_core_quit_cb, NULL)
- * </programlisting>
- *
- * This ensures that code from your plugin is not being executed when
- * purple_core_quit() is called. If the plugin called purple_core_quit()
- * directly, you would get a core dump after purple_core_quit() executes and
- * control returns to your plugin because purple_core_quit() frees all plugins.
- */
-gboolean purple_core_quit_cb(gpointer unused);
-
-/**
* purple_core_get_version:
*
* Returns the version of the core library.