From 44b000390e898085a88159e0c1f5cea2bd97986f Mon Sep 17 00:00:00 2001 From: rwatson Date: Thu, 23 Dec 2004 01:25:59 +0000 Subject: Remove the now unused tcp_canceltimers() function. tcpcb timers are now stopped as part of tcp_discardcb(). MFC after: 2 weeks --- sys/netinet/tcp_timer.c | 15 --------------- sys/netinet/tcp_var.h | 1 - 2 files changed, 16 deletions(-) (limited to 'sys/netinet') diff --git a/sys/netinet/tcp_timer.c b/sys/netinet/tcp_timer.c index 80fd03c..0a84259 100644 --- a/sys/netinet/tcp_timer.c +++ b/sys/netinet/tcp_timer.c @@ -137,21 +137,6 @@ tcp_slowtimo() INP_INFO_WUNLOCK(&tcbinfo); } -/* - * Cancel all timers for TCP tp. - * - * XXXRW: This appears to be unused. - */ -void -tcp_canceltimers(tp) - struct tcpcb *tp; -{ - callout_stop(tp->tt_2msl); - callout_stop(tp->tt_persist); - callout_stop(tp->tt_keep); - callout_stop(tp->tt_rexmt); -} - int tcp_syn_backoff[TCP_MAXRXTSHIFT + 1] = { 1, 1, 1, 1, 1, 2, 4, 8, 16, 32, 64, 64, 64 }; diff --git a/sys/netinet/tcp_var.h b/sys/netinet/tcp_var.h index 8dbf4a5..0e394f5f 100644 --- a/sys/netinet/tcp_var.h +++ b/sys/netinet/tcp_var.h @@ -507,7 +507,6 @@ extern int ss_fltsz_local; extern int tcp_do_sack; /* SACK enabled/disabled */ -void tcp_canceltimers(struct tcpcb *); struct tcpcb * tcp_close(struct tcpcb *); void tcp_twstart(struct tcpcb *); -- cgit v1.1