From c78a50c1d72d2b9296637ef1dcb44b339033f796 Mon Sep 17 00:00:00 2001 From: yrutschle Date: Wed, 27 Apr 2022 17:33:36 +0200 Subject: [PATCH] remove obsolete code --- processes.h | 3 --- sslh-ev.c | 6 ------ sslh-select.c | 6 ------ 3 files changed, 15 deletions(-) diff --git a/processes.h b/processes.h index 541d133..c2c89d5 100644 --- a/processes.h +++ b/processes.h @@ -21,8 +21,6 @@ struct loop_info { watchers* watchers; cnx_collection* collection; /* Collection of connections linked to this loop */ - - time_t next_timeout; /* time at which next UDP connection times out */ }; void cnx_read_process(struct loop_info* fd_info, int fd); @@ -40,6 +38,5 @@ void watchers_add_read(watchers* w, int fd); void watchers_del_read(watchers* w, int fd); void watchers_add_write(watchers* w, int fd); void watchers_del_write(watchers* w, int fd); -int watchers_maxfd(watchers* w); #endif diff --git a/sslh-ev.c b/sslh-ev.c index 414b969..b857b11 100644 --- a/sslh-ev.c +++ b/sslh-ev.c @@ -110,12 +110,6 @@ void watchers_del_write(watchers* w, int fd) if (io) ev_io_stop(EV_A_ io); } -/* To remove after moving UDP lookups to hash table */ -int watchers_maxfd(watchers* w) -{ - return w->max_fd; -} - /* /watchers */ #include "processes.h" diff --git a/sslh-select.c b/sslh-select.c index f15365b..703b7c6 100644 --- a/sslh-select.c +++ b/sslh-select.c @@ -84,12 +84,6 @@ void watchers_del_write(watchers* w, int fd) FD_CLR(fd, &w->fds_w); } -/* To remove after moving UDP lookups to hash table */ -int watchers_maxfd(watchers* w) -{ - return w->max_fd; -} - /* /end watchers */