MINOR: task: remove tasklet_insert_into_tasklet_list()
authorWilly Tarreau <w@1wt.eu>
Mon, 30 Nov 2020 14:30:22 +0000 (15:30 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 30 Nov 2020 17:17:44 +0000 (18:17 +0100)
commita868c2920bf1f85858bf389ab182ef2f07d33e1b
tree9bff23779b6b6112078ba511e76701f5e20cc220
parent1f05324cbe92a7dde71f44dc740eb8240539746f
MINOR: task: remove tasklet_insert_into_tasklet_list()

This function is only called at a single place and adds more confusion
than it removes. It also makes one think it could be used outside of
the scheduler while it must absolutely not. Let's just move its two
lines to the call place, making the code more readable there. In
addition this clearly shows that the preliminary LIST_INIT() is
useless since the entry is immediately overwritten.
include/haproxy/task.h
src/task.c