# HG changeset patch # User Will Thompson # Date 1190047958 0 # Node ID affc480cc570605d76e3f14316842e6131adfbf4 # Parent 143c6f34c6eb2572fbcd2eac0f0e3d02bd5c346b It's even better when code compiles. Remove references to disconnection reasons that I removed. diff -r 143c6f34c6eb -r affc480cc570 libpurple/connection.c --- 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: