comparison libpurple/protocols/jabber/chat.c @ 28756:08ffa726aea2

jabber: Remove useless jabber_normalize calls now that the data in the hash table is normalized.
author Paul Aurich <paul@darkrain42.org>
date Thu, 15 Oct 2009 16:25:09 +0000
parents ef513141e960
children 41992511531f
comparison
equal deleted inserted replaced
28755:d5ff2cd6064a 28756:08ffa726aea2
104 104
105 if(NULL != js->chats) 105 if(NULL != js->chats)
106 { 106 {
107 char *room_jid = g_strdup_printf("%s@%s", room, server); 107 char *room_jid = g_strdup_printf("%s@%s", room, server);
108 108
109 chat = g_hash_table_lookup(js->chats, jabber_normalize(NULL, room_jid)); 109 chat = g_hash_table_lookup(js->chats, room_jid);
110 g_free(room_jid); 110 g_free(room_jid);
111 } 111 }
112 112
113 return chat; 113 return chat;
114 } 114 }
371 void jabber_chat_destroy(JabberChat *chat) 371 void jabber_chat_destroy(JabberChat *chat)
372 { 372 {
373 JabberStream *js = chat->js; 373 JabberStream *js = chat->js;
374 char *room_jid = g_strdup_printf("%s@%s", chat->room, chat->server); 374 char *room_jid = g_strdup_printf("%s@%s", chat->room, chat->server);
375 375
376 g_hash_table_remove(js->chats, jabber_normalize(NULL, room_jid)); 376 g_hash_table_remove(js->chats, room_jid);
377 g_free(room_jid); 377 g_free(room_jid);
378 } 378 }
379 379
380 void jabber_chat_free(JabberChat *chat) 380 void jabber_chat_free(JabberChat *chat)
381 { 381 {