]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: listeners: remove the now unused enable_all_listeners()
authorWilly Tarreau <w@1wt.eu>
Fri, 25 Sep 2020 14:46:38 +0000 (16:46 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Oct 2020 09:27:30 +0000 (11:27 +0200)
It's not used anymore since previous commit. The good thing is that
no more listener function now directly acts on a protocol.

include/haproxy/listener.h
src/listener.c

index ccd9a47105d324a58053ae205c92864a15b49c6b..d6e130cd3310378af76b2a8655d18945b6c3d66c 100644 (file)
@@ -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();
 
index 9bc109702a90c2e6b7fbc16dd86be0ee710bc230..ff1d2986b5a4d76dd0986520a36cfd2e4679a319 100644 (file)
@@ -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()
 {