summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2012-12-31 18:23:21 +0100
committerAlexander Barton <alex@barton.de>2012-12-31 18:23:21 +0100
commit5d921984873b708c2f91bed01689f6351d95c233 (patch)
tree5e100f340df68e963af8aba487f77a0777e84bc6 /src
parent20ddffca0d5ae5393adc57b67ba90e15d33e2ee3 (diff)
downloadngircd-5d921984873b708c2f91bed01689f6351d95c233.tar.gz
ngircd-5d921984873b708c2f91bed01689f6351d95c233.zip
Get rid of Conn_ResetPenalty(), it is unused
Diffstat (limited to 'src')
-rw-r--r--src/ngircd/conn-func.c18
-rw-r--r--src/ngircd/conn-func.h1
2 files changed, 0 insertions, 19 deletions
diff --git a/src/ngircd/conn-func.c b/src/ngircd/conn-func.c
index e81a79e9..96476744 100644
--- a/src/ngircd/conn-func.c
+++ b/src/ngircd/conn-func.c
@@ -117,24 +117,6 @@ Conn_SetPenalty(CONN_ID Idx, time_t Seconds)
 } /* 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 )
 {
diff --git a/src/ngircd/conn-func.h b/src/ngircd/conn-func.h
index 21bbcdb0..1d05acc8 100644
--- a/src/ngircd/conn-func.h
+++ b/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 ));