]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: config: remove unused proc_mask()
authorWilly Tarreau <w@1wt.eu>
Fri, 24 Jun 2022 07:26:19 +0000 (09:26 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 1 Jul 2022 17:15:14 +0000 (19:15 +0200)
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

index 9d9a7fc483163a3952760b2cfc8d0131ce74d6ee..dcabd7c3c9bb4945aed9684adede9e4537d4d881 100644 (file)
@@ -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;