commit 5d921984873b708c2f91bed01689f6351d95c233 from: Alexander Barton date: Mon Dec 31 17:23:21 2012 UTC Get rid of Conn_ResetPenalty(), it is unused commit - 20ddffca0d5ae5393adc57b67ba90e15d33e2ee3 commit + 5d921984873b708c2f91bed01689f6351d95c233 blob - e81a79e961a1c165b4bf4851a8f594f6d4af74ee blob + 964767442ce8dfb1b3bc70ee443a4ceec8b6579c --- src/ngircd/conn-func.c +++ src/ngircd/conn-func.c @@ -115,26 +115,8 @@ Conn_SetPenalty(CONN_ID Idx, time_t Seconds) My_Connections[Idx].delaytime - t != 1 ? "s" : ""); #endif } /* 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 Conn_ClearFlags( void ) { blob - 21bbcdb0c9e2de517dc3b30f5dceb12152d0a494 blob + 1d05acc88d5623979a371e80aedc3f4a61e480c8 --- src/ngircd/conn-func.h +++ src/ngircd/conn-func.h @@ -45,7 +45,6 @@ GLOBAL long Conn_RecvBytes 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_ResetPenalty PARAMS(( CONN_ID Idx )); GLOBAL void Conn_ClearFlags PARAMS(( void )); GLOBAL int Conn_Flag PARAMS(( CONN_ID Idx ));