It's even better when code compiles. Remove references to disconnection cpw.resiak.disconnectreason

Mon, 17 Sep 2007 16:52:38 +0000

author
Will Thompson <resiak@pidgin.im>
date
Mon, 17 Sep 2007 16:52:38 +0000
branch
cpw.resiak.disconnectreason
changeset 20432
224a7b02823e
parent 20431
49979e453876
child 20433
786f26a8dc6f

It's even better when code compiles. Remove references to disconnection
reasons that I removed.

libpurple/connection.c file | annotate | diff | comparison | revisions
--- a/libpurple/connection.c	Mon Sep 17 15:30:51 2007 +0000
+++ b/libpurple/connection.c	Mon Sep 17 16:52:38 2007 +0000
@@ -504,7 +504,7 @@
 		description = _("Unknown error");
 	}
 
-	g_assert (reason >= 0 && reason < PURPLE_NUM_REASONS);
+	g_assert (reason < PURPLE_NUM_REASONS);
 
 	/* If we've already got one error, we don't need any more */
 	if (gc->disconnect_timeout)
@@ -529,10 +529,8 @@
 {
 	switch (reason)
 	{
-		case PURPLE_REASON_NONE_SPECIFIED:
 		case PURPLE_REASON_NETWORK_ERROR:
 			return FALSE;
-		case PURPLE_REASON_REQUESTED:
 		case PURPLE_REASON_AUTHENTICATION_FAILED:
 		case PURPLE_REASON_ENCRYPTION_ERROR:
 		case PURPLE_REASON_NAME_IN_USE:

mercurial