changeset 31163:de59c181e6aa

MsnUserEndpoint->id isn't actually used, so let's not store it in the struct. It's used as the key in the endpoints hashtable, so hopefully we can get away with keeping only one copy of it
author Mark Doliner <mark@kingant.net>
date Thu, 22 Apr 2010 20:51:24 +0000
parents 5a70b5364229
children 8e765543dc8b
files libpurple/protocols/msn/user.c libpurple/protocols/msn/user.h
diffstat 2 files changed, 0 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/user.c	Thu Apr 22 18:09:44 2010 +0000
+++ b/libpurple/protocols/msn/user.c	Thu Apr 22 20:51:24 2010 +0000
@@ -230,7 +230,6 @@
 static void
 free_user_endpoint(MsnUserEndpoint *data)
 {
-	g_free(data->id);
 	g_free(data->name);
 	g_free(data);
 }
@@ -255,7 +254,6 @@
 	new = g_hash_table_lookup(user->endpoints, endpoint);
 	if (!new) {
 		new = g_new0(MsnUserEndpoint, 1);
-		new->id = g_strdup(endpoint);
 		g_hash_table_insert(user->endpoints, g_strdup(endpoint), new);
 	}
 
--- a/libpurple/protocols/msn/user.h	Thu Apr 22 18:09:44 2010 +0000
+++ b/libpurple/protocols/msn/user.h	Thu Apr 22 20:51:24 2010 +0000
@@ -122,7 +122,6 @@
  * A specific user endpoint.
  */
 typedef struct MsnUserEndpoint {
-	char *id;				/**< The client's endpoint ID          */
 	char *name;				/**< The client's endpoint's name      */
 	int type;				/**< The client's endpoint type        */
 	guint clientid;         /**< The client's ID                   */