From: divverent Date: Wed, 4 Feb 2015 12:24:22 +0000 (+0000) Subject: Kill more unreachable code. X-Git-Tag: xonotic-v0.8.1~29^2~14 X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=commitdiff_plain;h=4887d0dc7d8ec90b9ff86ff2371ed37fdd1caca0 Kill more unreachable code. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12146 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/crypto.c b/crypto.c index ebb78d2e..8428c678 100644 --- a/crypto.c +++ b/crypto.c @@ -2315,7 +2315,7 @@ int Crypto_ClientParsePacket(const char *data_in, size_t len_in, char *data_out, CDATA->next_step = 1; *len_out = data_out_p - data_out; } - else if(clientid >= 0) + else // if(clientid >= 0) // guaranteed by condition one level outside { // skip over server auth, perform client auth only if(!CDATA->id) @@ -2339,8 +2339,6 @@ int Crypto_ClientParsePacket(const char *data_in, size_t len_in, char *data_out, data_out_p += *len_out; *len_out = data_out_p - data_out; } - else - *len_out = data_out_p - data_out; return CRYPTO_DISCARD; }