]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: map: get rid of map_add_key_value()
authorWilly Tarreau <w@1wt.eu>
Thu, 29 Apr 2021 14:55:17 +0000 (16:55 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 30 Apr 2021 13:36:31 +0000 (15:36 +0200)
commit4053b03caa02b21ceff0b764461693aa13ec6d57
tree3ddbbfcca4d449263af43f4835d042b0bb4387f1
parentf7dd0e8796a2a1ca5f5adfe7c7552163717213a1
MINOR: map: get rid of map_add_key_value()

This function was only used once in cli_parse_add_map(), and half of the
work it used to do was already known from the caller or testable outside
of the lock. Given that we'll need to modify it soon to pass a generation
number, let's remerge it in the caller instead, using pat_ref_load() which
is the one we'll need.
src/map.c