pidgin: 2aa73fd9: Save some memory. These fields aren't ac...

qulogic at pidgin.im qulogic at pidgin.im
Tue Jan 11 00:40:46 EST 2011


----------------------------------------------------------------------
Revision: 2aa73fd9f4749a6095de1e69ccc4480a813e3ac2
Parent:   e2035cc9062902d2137643b0a0b25926295b260f
Author:   qulogic at pidgin.im
Date:     01/10/11 23:46:53
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/2aa73fd9f4749a6095de1e69ccc4480a813e3ac2

Changelog: 

Save some memory. These fields aren't actually used for anything.

Changes against parent e2035cc9062902d2137643b0a0b25926295b260f

  patched  libpurple/protocols/msn/msg.h
  patched  libpurple/protocols/msn/sbconn.c
  patched  libpurple/protocols/msn/slpmsg.c
  patched  libpurple/protocols/msn/slpmsg.h

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/msg.h	ca54347c292b7256c0209a8c1a644da7f8b50532
+++ libpurple/protocols/msn/msg.h	2215e85c82c0585509c3e23456b1ee90015e1fe7
@@ -79,7 +79,6 @@ struct _MsnMessage
 	MsnMsgType type;
 
 	gboolean msnslp_message;
-	MsnSlpMessage *slpmsg;
 	MsnSlpMessagePart *part;
 
 	char *remote_user;
@@ -99,7 +98,6 @@ struct _MsnMessage
 								  been ref'ed for using it in a callback. */
 
 	MsnCommand *cmd;
-	MsnTransaction *trans;
 
 	MsnMsgCb ack_cb; /**< The callback to call when we receive an ACK of this
 					   message. */
@@ -107,8 +105,6 @@ struct _MsnMessage
 					   message. */
 	void *ack_data; /**< The data used by callbacks. */
 
-	MsnMsgErrorType error; /**< The error of the message. */
-
 	guint32 retries;
 };
 
============================================================
--- libpurple/protocols/msn/slpmsg.c	75b675898bf8e1f61ec01d25a76aeaaedf597e98
+++ libpurple/protocols/msn/slpmsg.c	3cc19f07b8e5fc10a5ca4d5f6d1cdbfbf16f5839
@@ -193,7 +193,6 @@ msn_slpmsg_sip_new(MsnSlpCall *slpcall, 
 	slpmsg = msn_slpmsg_new(slplink);
 	msn_slpmsg_set_body(slpmsg, body, body_len);
 
-	slpmsg->sip = TRUE;
 	slpmsg->slpcall = slpcall;
 
 	g_free(body);
============================================================
--- libpurple/protocols/msn/slpmsg.h	2b1bc40aceed766efd60ae3b9854451ca55182d8
+++ libpurple/protocols/msn/slpmsg.h	095169bd629ea37641fb5d8f440f4ee2ad061426
@@ -50,8 +50,6 @@ struct _MsnSlpMessage
 
 	long id;
 
-	gboolean sip; /**< A flag that states if this is a SIP slp message. */
-
 	gboolean ft;
 	PurpleStoredImage *img;
 	guchar *buffer;
============================================================
--- libpurple/protocols/msn/sbconn.c	1d7e4039ab621ebc5eae5b6fd5948f8ab329d85e
+++ libpurple/protocols/msn/sbconn.c	eff828e66030ba1f23ecd25ba7fd0ded4af6c9a4
@@ -126,8 +126,6 @@ release_msg(MsnSwitchBoard *swboard, Msn
 	trans->payload = payload;
 	trans->payload_len = payload_len;
 
-	msg->trans = trans;
-
 	msn_cmdproc_send_trans(cmdproc, trans);
 }
 


More information about the Commits mailing list