changeset 31598:b1a6535f99d9

Get rid of a few other dead variables.
author Paul Aurich <paul@darkrain42.org>
date Wed, 11 May 2011 05:04:43 +0000
parents 4c7ebb2cf4d1
children 7ad1f8242ae8 40d60f1c896e
files libpurple/protocols/jabber/auth_cyrus.c libpurple/protocols/jabber/bosh.c libpurple/protocols/mxit/formcmds.c libpurple/protocols/myspace/markup.c
diffstat 4 files changed, 3 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/auth_cyrus.c	Wed May 11 05:00:06 2011 +0000
+++ b/libpurple/protocols/jabber/auth_cyrus.c	Wed May 11 05:04:43 2011 +0000
@@ -174,7 +174,6 @@
 		return;
 
 	account = purple_connection_get_account(gc);
-	js = purple_connection_get_protocol_data(gc);
 
 	/* Disable the account as the user has cancelled connecting */
 	purple_account_set_enabled(account, purple_core_get_ui(), FALSE);
--- a/libpurple/protocols/jabber/bosh.c	Wed May 11 05:00:06 2011 +0000
+++ b/libpurple/protocols/jabber/bosh.c	Wed May 11 05:04:43 2011 +0000
@@ -804,7 +804,6 @@
 		if (end_of_headers) {
 			conn->headers_done = TRUE;
 			conn->handled_len = end_of_headers - conn->read_buf->str + 4;
-			cursor = end_of_headers + 4;
 		} else {
 			conn->handled_len = conn->read_buf->len;
 			return;
--- a/libpurple/protocols/mxit/formcmds.c	Wed May 11 05:00:06 2011 +0000
+++ b/libpurple/protocols/mxit/formcmds.c	Wed May 11 05:04:43 2011 +0000
@@ -188,7 +188,6 @@
 {
 	GHashTable* hash	= NULL;
 	gchar**		parts;
-	gchar*		part;
 	int			i		= 0;
 
 #ifdef MXIT_DEBUG_COMMANDS
@@ -201,7 +200,7 @@
 	hash = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free);
 
 	/* now break part into a key & value */
-	while ((part = parts[i]) != NULL) {
+	while (parts[i] != NULL) {
 		char* value;
 
 		value = strchr(parts[i], '=');		/* find start of value */
--- a/libpurple/protocols/myspace/markup.c	Wed May 11 05:00:06 2011 +0000
+++ b/libpurple/protocols/myspace/markup.c	Wed May 11 05:04:43 2011 +0000
@@ -600,7 +600,7 @@
 msim_convert_xmlnode(MsimSession *session, GString *out, xmlnode *root, MSIM_XMLNODE_CONVERT f, int nodes_processed)
 {
 	xmlnode *node;
-	gchar *begin, *inner, *end, *tmp;
+	gchar *begin, *end, *tmp;
 	int descended = nodes_processed;
 
 	if (!root || !root->name)
@@ -609,7 +609,7 @@
 	purple_debug_info("msim", "msim_convert_xmlnode: got root=%s\n",
 			root->name);
 
-	begin = inner = end = NULL;
+	begin = end = NULL;
 
 	if (descended == 0) /* We've not formatted this yet.. :) */
 		descended = f(session, root, &begin, &end); /* Get the value that our format function has already descended for us */