/soc/2013/ankitkv/gobjectification: 64d359bbe6f6: Removed purple...

Ankit Vani a at nevitus.org
Wed Aug 7 10:30:24 EDT 2013


Changeset: 64d359bbe6f69f4acc1d7df6ebf982fe0de46865
Author:	 Ankit Vani <a at nevitus.org>
Date:	 2013-08-07 20:00 +0530
Branch:	 soc.2013.gobjectification.plugins
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/64d359bbe6f6

Description:

Removed purple_plugins_unload_all() from the API

diffstat:

 libpurple/plugins.c |  12 ++----------
 libpurple/plugins.h |   5 -----
 2 files changed, 2 insertions(+), 15 deletions(-)

diffs (44 lines):

diff --git a/libpurple/plugins.c b/libpurple/plugins.c
--- a/libpurple/plugins.c
+++ b/libpurple/plugins.c
@@ -910,15 +910,6 @@ purple_plugins_load_saved(const char *ke
 #endif /* PURPLE_PLUGINS */
 }
 
-void
-purple_plugins_unload_all(void)
-{
-#ifdef PURPLE_PLUGINS
-	while (loaded_plugins != NULL)
-		purple_plugin_unload(loaded_plugins->data);
-#endif
-}
-
 /**************************************************************************
  * Plugins Subsystem API
  **************************************************************************/
@@ -956,7 +947,8 @@ purple_plugins_uninit(void)
 
 #ifdef PURPLE_PLUGINS
 	purple_debug_info("plugins", "Unloading all plugins\n");
-	purple_plugins_unload_all();
+	while (loaded_plugins != NULL)
+		purple_plugin_unload(loaded_plugins->data);
 #endif
 
 	purple_signals_disconnect_by_handle(handle);
diff --git a/libpurple/plugins.h b/libpurple/plugins.h
--- a/libpurple/plugins.h
+++ b/libpurple/plugins.h
@@ -604,11 +604,6 @@ void purple_plugins_save_loaded(const ch
  */
 void purple_plugins_load_saved(const char *key);
 
-/**
- * Unloads all loaded plugins.
- */
-void purple_plugins_unload_all(void);
-
 /*@}*/
 
 /**************************************************************************/



More information about the Commits mailing list