changeset 20068:affc480cc570

It's even better when code compiles. Remove references to disconnection reasons that I removed.
author Will Thompson <will.thompson@collabora.co.uk>
date Mon, 17 Sep 2007 16:52:38 +0000
parents 143c6f34c6eb
children 2d38b90bee15
files libpurple/connection.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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: