Get rid of Conn_ResetPenalty(), it is unused

This commit is contained in:
Alexander Barton 2012-12-31 18:23:21 +01:00
parent 20ddffca0d
commit 5d92198487
2 changed files with 0 additions and 19 deletions

View File

@ -117,24 +117,6 @@ Conn_SetPenalty(CONN_ID Idx, time_t Seconds)
} /* Conn_SetPenalty */ } /* Conn_SetPenalty */
/**
* Reset the "penalty time" for one connection.
*
* @param Idx Connection index.
* @see Conn_SetPenalty
*/
GLOBAL void
Conn_ResetPenalty(CONN_ID Idx)
{
assert(Idx > NONE);
My_Connections[Idx].delaytime = 0;
#ifdef DEBUG
Log(LOG_DEBUG, "Penalty time on connection %d has been reset.");
#endif
} /* Conn_ResetPenalty */
GLOBAL void GLOBAL void
Conn_ClearFlags( void ) Conn_ClearFlags( void )
{ {

View File

@ -45,7 +45,6 @@ GLOBAL long Conn_RecvBytes PARAMS(( CONN_ID Idx ));
GLOBAL const char *Conn_IPA PARAMS(( CONN_ID Idx )); GLOBAL const char *Conn_IPA PARAMS(( CONN_ID Idx ));
GLOBAL void Conn_SetPenalty PARAMS(( CONN_ID Idx, time_t Seconds )); GLOBAL void Conn_SetPenalty PARAMS(( CONN_ID Idx, time_t Seconds ));
GLOBAL void Conn_ResetPenalty PARAMS(( CONN_ID Idx ));
GLOBAL void Conn_ClearFlags PARAMS(( void )); GLOBAL void Conn_ClearFlags PARAMS(( void ));
GLOBAL int Conn_Flag PARAMS(( CONN_ID Idx )); GLOBAL int Conn_Flag PARAMS(( CONN_ID Idx ));