libpurple/protocols/bonjour/jabber.c

changeset 38854
086e15ec656d
parent 38433
361c801c4536
child 39190
507018dc9fa5
--- a/libpurple/protocols/bonjour/jabber.c	Fri Dec 29 03:57:44 2017 +0000
+++ b/libpurple/protocols/bonjour/jabber.c	Thu Jan 04 22:39:03 2018 -0600
@@ -158,10 +158,6 @@
 
 	events_node = purple_xmlnode_get_child_with_namespace(message_node, "x", "jabber:x:event");
 	if (events_node != NULL) {
-#if 0
-		if (purple_xmlnode_get_child(events_node, "composing") != NULL)
-			composing_event = TRUE;
-#endif
 		if (purple_xmlnode_get_child(events_node, "id") != NULL) {
 			/* The user is just typing */
 			/* TODO: Deal with typing notification */
@@ -393,17 +389,7 @@
 
 	if(bconv->pb != NULL)
 		bb = purple_buddy_get_protocol_data(bconv->pb);
-#if 0
-	if(bconv->pb != NULL) {
-		PurpleConversation *conv;
-		conv = purple_conversations_find_im_with_account(bconv->pb->name, bconv->pb->account);
-		if (conv != NULL) {
-			char *tmp = g_strdup_printf(_("%s has closed the conversation."), bconv->pb->name);
-			purple_conversation_write_system_message(conv, tmp, 0);
-			g_free(tmp);
-		}
-	}
-#endif
+
 	/* Close the socket, clear the watcher and free memory */
 	bonjour_jabber_close_conversation(bconv);
 	if(bb)
@@ -737,16 +723,6 @@
 		return -1;
 	}
 
-#if 0
-	/* TODO: Why isn't this being used? */
-	data->socket = purple_network_listen(jdata->port, AF_UNSPEC, SOCK_STREAM, TRUE);
-
-	if (jdata->socket == -1)
-	{
-		purple_debug_error("bonjour", "No se ha podido crear el socket\n");
-	}
-#endif
-
 	return ret_port;
 }
 

mercurial