]> git.kaiwu.me - haproxy.git/commitdiff
CLEANUP: cfgparse: remove the unused common_kw_list[] definitions
authorWilly Tarreau <w@1wt.eu>
Thu, 8 Oct 2026 17:03:58 +0000 (19:03 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Oct 2026 08:30:59 +0000 (10:30 +0200)
These were the old (and incomplete) lists of section names for use
with cfg_parse_global() and cfg_parse_listen(), that were passed to
cfg_find_best_match(). They're no longer needed so let's get rid of
them.

src/cfgparse-global.c
src/cfgparse-listen.c

index 09167daa08e043e893979c8378d79c40fc96c889..6d5dc02fc695f16092d718c23fbe282da370087c 100644 (file)
 
 int cluster_secret_isset;
 
-/* some keywords that are still being parsed using strcmp() and are not
- * registered anywhere. They are used as suggestions for mistyped words.
- * DO NOT ADD ANY NEW KEYWORDS HERE, THAT MUST NO LONGER BE NECESSARY!
- */
-static const char *common_kw_list[] = {
-       "global",
-       "defaults", "listen", "frontend", "backend",
-       "peers", "resolvers",
-       NULL /* must be last */
-};
-
 /*
  * parse a line in a <global> section. Returns the error code, 0 if OK, or
  * any combination of :
index 0b116175d393aeca2132cce09648849bf50ffc8c..a7207a7645894917a67bc3a8a15f7d682dea169c 100644 (file)
 #include <haproxy/tools.h>
 #include <haproxy/uri_auth.h>
 
-/* some keywords that are still being parsed using strcmp() and are not
- * registered anywhere. They are used as suggestions for mistyped words.
- * DO NOT ADD ANY NEW KEYWORDS HERE, THAT MUST NO LONGER BE NECESSARY!
- */
-static const char *common_kw_list[] = {
-       "listen", "frontend", "backend", "defaults",
-       NULL /* must be last */
-};
-
 /* Options which are not described in the cfg_opts* arrays because they need a
  * dedicated parsing, and which are only used as suggestions for mistyped
  * words. This list must be kept in sync with the options which have a