changeset 25165:1b64942c5fb2

jabber_contact_info is no longer used
author Paul Aurich <paul@darkrain42.org>
date Sat, 22 Nov 2008 18:30:01 +0000
parents f462fa160f06
children 18fdbe507fdd
files libpurple/protocols/jabber/caps.c libpurple/protocols/jabber/jabber.c libpurple/protocols/jabber/jabber.h
diffstat 3 files changed, 0 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/caps.c	Sat Nov 22 18:26:45 2008 +0000
+++ b/libpurple/protocols/jabber/caps.c	Sat Nov 22 18:30:01 2008 +0000
@@ -540,8 +540,6 @@
 	key->hash = g_strdup(hash);
 	
 	client = g_hash_table_lookup(capstable, key);
-
-	g_hash_table_replace(jabber_contact_info, g_strdup(who), key);
 	
 	if(!client) {
 		JabberIq *iq = jabber_iq_new_query(js,JABBER_IQ_GET,"http://jabber.org/protocol/disco#info");
--- a/libpurple/protocols/jabber/jabber.c	Sat Nov 22 18:26:45 2008 +0000
+++ b/libpurple/protocols/jabber/jabber.c	Sat Nov 22 18:30:01 2008 +0000
@@ -67,8 +67,6 @@
 GList *jabber_features = NULL;
 GList *jabber_identities = NULL;
 
-GHashTable *jabber_contact_info = NULL;
-
 static void jabber_unregister_account_cb(JabberStream *js);
 static void try_srv_connect(JabberStream *js);
 
@@ -2625,8 +2623,6 @@
 	jabber_add_feature("http://jabber.org/protocol/xhtml-im", 0);
 	jabber_add_feature("urn:xmpp:ping", 0);
 	
-	jabber_contact_info = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, jabber_caps_destroy_key);
-	
 	/* IPC functions */
 	purple_plugin_ipc_register(plugin, "contact_has_feature", PURPLE_CALLBACK(jabber_ipc_contact_has_feature),
 							 purple_marshal_BOOLEAN__POINTER_POINTER_POINTER,
--- a/libpurple/protocols/jabber/jabber.h	Sat Nov 22 18:26:45 2008 +0000
+++ b/libpurple/protocols/jabber/jabber.h	Sat Nov 22 18:30:01 2008 +0000
@@ -279,8 +279,6 @@
 extern GList *jabber_features;
 extern GList *jabber_identities;
 
-extern GHashTable *jabber_contact_info; /* char * -> JabberCapsKey */
-
 void jabber_stream_features_parse(JabberStream *js, xmlnode *packet);
 void jabber_process_packet(JabberStream *js, xmlnode **packet);
 void jabber_send(JabberStream *js, xmlnode *data);