From: Willy Tarreau Date: Wed, 22 Jan 2020 06:36:00 +0000 (+0100) Subject: CLEANUP: pattern: remove the pat_time definition X-Git-Tag: v2.2-dev1~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2086365f51b48e572f1df46739b715c2b9a356db;p=thirdparty%2Fhaproxy.git CLEANUP: pattern: remove the pat_time definition It was inherited from acl_time, introduced in 1.3.10 by commit a84d374367 ("[MAJOR] new framework for generic ACL support") and was never ever used. Let's simply drop it now. --- diff --git a/include/types/pattern.h b/include/types/pattern.h index a2d609ba0d..143524f02e 100644 --- a/include/types/pattern.h +++ b/include/types/pattern.h @@ -121,13 +121,6 @@ struct pat_ref_elt { int line; }; -/* How to store a time range and the valid days in 29 bits */ -struct pat_time { - int dow:7; /* 1 bit per day of week: 0-6 */ - int h1:5, m1:6; /* 0..24:0..60. Use 0:0 for all day. */ - int h2:5, m2:6; /* 0..24:0..60. Use 24:0 for all day. */ -}; - /* This contain each tree indexed entry. This struct permit to associate * "sample" with a tree entry. It is used with maps. */ @@ -161,7 +154,6 @@ struct pattern { struct in6_addr addr; unsigned char mask; /* number of bits */ } ipv6; /* IPv6 address/mask */ - struct pat_time time; /* valid hours and days */ struct eb_root *tree; /* tree storing all values if any */ } val; /* direct value */ union {