From 66ef2c3af624df1338c533b0ed012252587948e4 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Fri, 24 Jun 2022 09:26:19 +0200 Subject: [PATCH] CLEANUP: config: remove unused proc_mask() The function was used to return the mask of enabled processes, but it now always returns 1 and is not called anymore. Let's drop it. --- include/haproxy/global.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/include/haproxy/global.h b/include/haproxy/global.h index 9d9a7fc48..dcabd7c3c 100644 --- a/include/haproxy/global.h +++ b/include/haproxy/global.h @@ -76,12 +76,6 @@ static inline int already_warned(unsigned int warning) return 0; } -/* returns a mask if set, otherwise 1 */ -static inline unsigned long proc_mask(unsigned long mask) -{ - return mask ? mask : 1; -} - extern unsigned int experimental_directives_allowed; struct cfg_keyword;