summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael McConville <mmcconville@mykolab.com>2015-07-21 14:03:38 -0400
committerMichael McConville <mmcconville@mykolab.com>2015-07-21 14:03:38 -0400
commita5b504bd1d07830cd207a192324324f2c02f71a7 (patch)
tree3b0a1c2e8bbcd26823de84d296e1a2efd3faff0a
parent961aeff7708f37cb2039142af1238fe1cec056f5 (diff)
downloadpidgin-a5b504bd1d07830cd207a192324324f2c02f71a7.tar.gz
remove obselete #if 0'd code from GTK Buddy Note plugin (ok'd by etan)
-rw-r--r--pidgin/plugins/gtkbuddynote.c45
1 files changed, 0 insertions, 45 deletions
diff --git a/pidgin/plugins/gtkbuddynote.c b/pidgin/plugins/gtkbuddynote.c
index 4e841da1dd..c73bc9bf21 100644
--- a/pidgin/plugins/gtkbuddynote.c
+++ b/pidgin/plugins/gtkbuddynote.c
@@ -42,44 +42,6 @@ append_to_tooltip(PurpleBlistNode *node, GString *text, gboolean full)
}
}
-#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 **error)
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;
}