diff libpurple/protocols/novell/novell.c @ 32410:f07501af8bae

Remove dead assignments found with clang-analyzer. Also, remove the unused variables resulting from this cleanup. Added a FIXME in cases where variables are not read, but should be used later.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Thu, 22 Dec 2011 08:39:45 +0000
parents 2ec94166be43
children
line wrap: on
line diff
--- a/libpurple/protocols/novell/novell.c	Thu Dec 22 07:55:41 2011 +0000
+++ b/libpurple/protocols/novell/novell.c	Thu Dec 22 08:39:45 2011 +0000
@@ -1177,7 +1177,6 @@
 	const char *dn;
 	const char *name;
 	int idle = 0;
-	gboolean loggedin = TRUE;
 
 	account = purple_buddy_get_account(buddy);
 	name = purple_buddy_get_name(buddy);
@@ -1194,7 +1193,6 @@
 			break;
 		case NM_STATUS_OFFLINE:
 			status_id = NOVELL_STATUS_TYPE_OFFLINE;
-			loggedin = FALSE;
 			break;
 		case NM_STATUS_AWAY_IDLE:
 			status_id = NOVELL_STATUS_TYPE_AWAY;
@@ -1202,7 +1200,6 @@
 			break;
 		default:
 			status_id = NOVELL_STATUS_TYPE_OFFLINE;
-			loggedin = FALSE;
 			break;
 	}