/pidgin/main: 0da690bbe012: remove obselete #if 0'd code from GT...

Michael McConville <[email protected]>
Newsgroups gmane.comp.gnome.gaim.cvs
Message-ID <[email protected]>
Changeset: 0da690bbe01250903a2edf15bdc6979078945483
Author:	 Michael McConville <[email protected]>
Date:	 2015-07-21 14:03 -0400
Branch:	 default
URL: https://hg.pidgin.im/pidgin/main/rev/0da690bbe012

Description:

remove obselete #if 0'd code from GTK Buddy Note plugin (ok'd by etan)

diffstat:

 pidgin/plugins/gtkbuddynote.c |  45 -------------------------------------------
 1 files changed, 0 insertions(+), 45 deletions(-)

diffs (62 lines):

diff --git a/pidgin/plugins/gtkbuddynote.c b/pidgin/plugins/gtkbuddynote.c
--- a/pidgin/plugins/gtkbuddynote.c
+++ b/pidgin/plugins/gtkbuddynote.c
@@ -42,44 +42,6 @@ append_to_tooltip(PurpleBlistNode *node,
 	}
 }
 
-#if 0
-static gboolean
-check_for_buddynote(gpointer data)
-{
-	PurplePlugin *buddynote = NULL;
-	PurplePlugin *plugin = (PurplePlugin *)data;
-
-	buddynote = purple_plugins_find_with_id("core-plugin_pack-buddynote");
-
-	if (buddynote == NULL) {
-		buddynote = purple_plugins_find_with_basename("buddynote");
-	}
-
-	if (buddynote != NULL) {
-		PurplePluginInfo *bninfo = buddynote->info;
-
-		bninfo->flags = PURPLE_PLUGIN_FLAG_INVISIBLE;
-
-
-		/* If non-gtk buddy note plugin is loaded, but we are not, then load
-		 * ourselves, otherwise people upgrading from pre-gtkbuddynote days
-		 * will not have 'Buddy Notes' showing as loaded in the plugins list.
-		 * We also trigger a save on the list of plugins because it's not been
-		 * loaded through the UI. */
-		if (purple_plugin_is_loaded(buddynote) &&
-		    !purple_plugin_is_loaded(plugin)) {
-			purple_plugin_load(plugin);
-			pidgin_plugins_save();
-		}
-
-	} else {
-		info.flags = PURPLE_PLUGIN_FLAG_INVISIBLE;
-	}
-
-	return FALSE;
-}
-#endif
-
 static PidginPluginInfo *
 plugin_query(GError **error)
 {
@@ -119,13 +81,6 @@ plugin_load(PurplePlugin *plugin, GError
 static gboolean
 plugin_unload(PurplePlugin *plugin, GError **error)
 {
-#if 0
-	PurplePlugin *buddynote = NULL;
-
-	buddynote = purple_plugins_find_with_id("core-plugin_pack-buddynote");
-	purple_plugin_unload(buddynote);
-#endif
-
 	return TRUE;
 }
 

_______________________________________________
Commits mailing list
[email protected]
https://pidgin.im/cgi-bin/mailman/listinfo/commits
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.