]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: peers: remove unused "proto" and "xprt" struct members
authorAurelien DARRAGON <adarragon@haproxy.com>
Thu, 30 Nov 2023 16:24:39 +0000 (17:24 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 21 Dec 2023 13:22:27 +0000 (14:22 +0100)
commit372d3e29347cb072197200d4a5b7ea3dbad71421
tree821d35e2bb8f864005d1eb5126553eba1b18e72d
parent334caefaaaaba5ae0efec9fcd69e8b96f3c9ee27
CLEANUP: peers: remove unused "proto" and "xprt" struct members

peer->proto and peer->xprt struct members are now pure legacy: they are
only set during parsing but never used afterwards.

This is due to commit 02efedac ("MINOR: peers: now remove the remote
connection setup code") which made some cleanup in the past, but the
unused proto and xprt members were probably left unused by mistake.

Since we don't have valid uses for them, we remove them.

Also, peer_xprt() helper function was removed since it was related to
peer->xprt struct member.
include/haproxy/peers-t.h
include/haproxy/peers.h
src/cfgparse.c