mirror of
https://github.com/tbamud/tbamud.git
synced 2026-01-16 14:15:28 +01:00
Removed dead stores.
This commit is contained in:
parent
5cca63a01c
commit
bf941bc9b2
28 changed files with 85 additions and 139 deletions
|
|
@ -1530,7 +1530,6 @@ static void Negotiate( descriptor_t *apDescriptor )
|
|||
|
||||
static void PerformHandshake( descriptor_t *apDescriptor, char aCmd, char aProtocol )
|
||||
{
|
||||
bool_t bResult = true;
|
||||
protocol_t *pProtocol = apDescriptor->pProtocol;
|
||||
|
||||
switch ( aProtocol )
|
||||
|
|
@ -1559,8 +1558,6 @@ static void PerformHandshake( descriptor_t *apDescriptor, char aCmd, char aProto
|
|||
Negotiate(apDescriptor);
|
||||
}
|
||||
}
|
||||
else /* Anything else is invalid. */
|
||||
bResult = false;
|
||||
break;
|
||||
|
||||
case (char)TELOPT_NAWS:
|
||||
|
|
@ -1568,8 +1565,6 @@ static void PerformHandshake( descriptor_t *apDescriptor, char aCmd, char aProto
|
|||
pProtocol->bNAWS = true;
|
||||
else if ( aCmd == (char)WONT )
|
||||
pProtocol->bNAWS = false;
|
||||
else /* Anything else is invalid. */
|
||||
bResult = false;
|
||||
break;
|
||||
|
||||
case (char)TELOPT_CHARSET:
|
||||
|
|
@ -1581,8 +1576,6 @@ static void PerformHandshake( descriptor_t *apDescriptor, char aCmd, char aProto
|
|||
}
|
||||
else if ( aCmd == (char)WONT )
|
||||
pProtocol->bCHARSET = false;
|
||||
else /* Anything else is invalid. */
|
||||
bResult = false;
|
||||
break;
|
||||
|
||||
case (char)TELOPT_MSDP:
|
||||
|
|
@ -1595,8 +1588,6 @@ static void PerformHandshake( descriptor_t *apDescriptor, char aCmd, char aProto
|
|||
}
|
||||
else if ( aCmd == (char)DONT )
|
||||
pProtocol->bMSDP = false;
|
||||
else /* Anything else is invalid. */
|
||||
bResult = false;
|
||||
break;
|
||||
|
||||
case (char)TELOPT_MSSP:
|
||||
|
|
@ -1604,8 +1595,6 @@ static void PerformHandshake( descriptor_t *apDescriptor, char aCmd, char aProto
|
|||
SendMSSP( apDescriptor );
|
||||
else if ( aCmd == (char)DONT )
|
||||
; /* Do nothing. */
|
||||
else /* Anything else is invalid. */
|
||||
bResult = false;
|
||||
break;
|
||||
|
||||
case (char)TELOPT_MCCP:
|
||||
|
|
@ -1619,8 +1608,6 @@ static void PerformHandshake( descriptor_t *apDescriptor, char aCmd, char aProto
|
|||
pProtocol->bMCCP = false;
|
||||
CompressEnd( apDescriptor );
|
||||
}
|
||||
else // Anything else is invalid.
|
||||
bResult = false;
|
||||
break;
|
||||
|
||||
case (char)TELOPT_MSP:
|
||||
|
|
@ -1628,8 +1615,6 @@ static void PerformHandshake( descriptor_t *apDescriptor, char aCmd, char aProto
|
|||
pProtocol->bMSP = true;
|
||||
else if ( aCmd == (char)DONT )
|
||||
pProtocol->bMSP = false;
|
||||
else /* Anything else is invalid. */
|
||||
bResult = false;
|
||||
break;
|
||||
|
||||
case (char)TELOPT_MXP:
|
||||
|
|
@ -1665,8 +1650,6 @@ static void PerformHandshake( descriptor_t *apDescriptor, char aCmd, char aProto
|
|||
}
|
||||
else if ( aCmd == (char)DONT )
|
||||
pProtocol->bMXP = false;
|
||||
else /* Anything else is invalid. */
|
||||
bResult = false;
|
||||
break;
|
||||
|
||||
case (char)TELOPT_ATCP:
|
||||
|
|
@ -1692,12 +1675,10 @@ static void PerformHandshake( descriptor_t *apDescriptor, char aCmd, char aProto
|
|||
}
|
||||
else if ( aCmd == (char)WONT )
|
||||
pProtocol->bATCP = false;
|
||||
else /* Anything else is invalid. */
|
||||
bResult = false;
|
||||
break;
|
||||
|
||||
default:
|
||||
bResult = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue