diff options
author | Willy Tarreau <w@1wt.eu> | 2020-09-25 16:46:38 +0200 |
---|---|---|
committer | Willy Tarreau <w@1wt.eu> | 2020-10-07 18:45:03 +0200 |
commit | afe2c71ed6e2d68b39ed087c42eb37f3c101c543 (patch) | |
tree | 93cbcb10523edcc9daa29508782a84db92c8f4d2 | |
parent | 64c92ace413e45c371c927011c176470982714fd (diff) | |
download | haproxy-afe2c71ed6e2d68b39ed087c42eb37f3c101c543.tar.gz |
CLEANUP: listeners: remove the now unused enable_all_listeners()
It's not used anymore since previous commit. The good thing is that
no more listener function now directly acts on a protocol.
-rw-r--r-- | include/haproxy/listener.h | 8 | ||||
-rw-r--r-- | src/listener.c | 18 |
2 files changed, 0 insertions, 26 deletions
diff --git a/include/haproxy/listener.h b/include/haproxy/listener.h index ccd9a4710..d6e130cd3 100644 --- a/include/haproxy/listener.h +++ b/include/haproxy/listener.h @@ -56,14 +56,6 @@ int resume_listener(struct listener *l); */ void enable_listener(struct listener *listener); -/* This function adds all of the protocol's listener's file descriptors to the - * polling lists when they are in the LI_LISTEN state. It is intended to be - * used as a protocol's generic enable_all() primitive, for use after the - * fork(). It puts the listeners into LI_READY or LI_FULL states depending on - * their number of connections. It always returns ERR_NONE. - */ -int enable_all_listeners(struct protocol *proto); - /* Dequeues all listeners waiting for a resource the global wait queue */ void dequeue_all_listeners(); diff --git a/src/listener.c b/src/listener.c index e84f8eec4..f611bf79f 100644 --- a/src/listener.c +++ b/src/listener.c @@ -463,24 +463,6 @@ static void limit_listener(struct listener *l, struct mt_list *list) HA_SPIN_UNLOCK(LISTENER_LOCK, &l->lock); } -/* This function adds all of the protocol's listener's file descriptors to the - * polling lists when they are in the LI_LISTEN state. It is intended to be - * used as a protocol's generic enable_all() primitive, for use after the - * fork(). It puts the listeners into LI_READY or LI_FULL states depending on - * their number of connections. It always returns ERR_NONE. - * - * Must be called with proto_lock held. - * - */ -int enable_all_listeners(struct protocol *proto) -{ - struct listener *listener; - - list_for_each_entry(listener, &proto->listeners, rx.proto_list) - enable_listener(listener); - return ERR_NONE; -} - /* Dequeues all listeners waiting for a resource the global wait queue */ void dequeue_all_listeners() { |