From: Willy Tarreau Date: Fri, 24 Jun 2022 07:26:19 +0000 (+0200) Subject: CLEANUP: config: remove unused proc_mask() X-Git-Tag: v2.7-dev2~159 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=66ef2c3af624df1338c533b0ed012252587948e4;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/include/haproxy/global.h b/include/haproxy/global.h index 9d9a7fc483..dcabd7c3c9 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;