]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: config: drop unused setting CONFIG_HAP_MEM_OPTIM
authorWilly Tarreau <w@1wt.eu>
Sat, 9 May 2020 06:53:31 +0000 (08:53 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 9 May 2020 06:53:31 +0000 (08:53 +0200)
CONFIG_HAP_MEM_OPTIM was introduced with memory pools in 1.3 and dropped
in 1.6 when pools became the only way to allocate memory. Still the
option remained present in config.h. Let's kill it.

include/common/config.h

index 16f47c9e275313ce9965f9dac4e65156043ef529..9d12c8eb45c82b8f70c9b6e9b1ac44ad15f92267 100644 (file)
 #include <common/compat.h>
 #include <common/defaults.h>
 
-/* CONFIG_HAP_MEM_OPTIM
- * This enables use of memory pools instead of malloc()/free(). There
- * is no reason to disable it, except perhaps for rare debugging.
- */
-#ifndef   CONFIG_HAP_NO_MEM_OPTIM
-#  define CONFIG_HAP_MEM_OPTIM
-#endif /* CONFIG_HAP_NO_MEM_OPTIM */
-
 #ifdef USE_THREAD
 #define THREAD_LOCAL __thread
 #else