From: Aurelien DARRAGON Date: Tue, 25 Jun 2024 16:31:29 +0000 (+0200) Subject: MINOR: cfgparse/log: remove leftover dead code X-Git-Tag: v3.1-dev2~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bcf98c9b5f00855cf82eff0bcb71f142cb234bb2;p=thirdparty%2Fhaproxy.git MINOR: cfgparse/log: remove leftover dead code Remove development leftover introduced by commit 15e9c7da6 ("MINOR: log: add log-profile parsing logic"). Indeed, since "log-profile" section keyword is registered via REGISTER_CONFIG_SECTION() macro, it is not relevant to declare it in common_kw_list[] from cfgparse-global.c. All it does is that it could confuse the user by suggesting him to use "log-profile" inside a global section when trying to find a best match in cfg_parse_global(). --- diff --git a/src/cfgparse-global.c b/src/cfgparse-global.c index 0a081a3391..452c0e5453 100644 --- a/src/cfgparse-global.c +++ b/src/cfgparse-global.c @@ -46,12 +46,12 @@ static const char *common_kw_list[] = { "ssl-server-verify", "maxconnrate", "maxsessrate", "maxsslrate", "maxcomprate", "maxpipes", "maxzlibmem", "maxcompcpuusage", "ulimit-n", "chroot", "description", "node", "pidfile", "unix-bind", "log", - "log-profile", "log-send-hostname", "log-tag", "server-state-base", - "server-state-file", "spread-checks", "max-spread-checks", "cpu-map", - "setenv", "presetenv", "unsetenv", "resetenv", "strict-limits", - "localpeer", "numa-cpu-mapping", "defaults", "listen", "frontend", - "backend", "peers", "resolvers", "cluster-secret", "no-quic", - "limited-quic", "stats-file", + "log-send-hostname", "server-state-base", "server-state-file", + "log-tag", "spread-checks", "max-spread-checks", "cpu-map", "setenv", + "presetenv", "unsetenv", "resetenv", "strict-limits", "localpeer", + "numa-cpu-mapping", "defaults", "listen", "frontend", "backend", + "peers", "resolvers", "cluster-secret", "no-quic", "limited-quic", + "stats-file", NULL /* must be last */ };