]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: pattern: remove the pat_time definition
authorWilly Tarreau <w@1wt.eu>
Wed, 22 Jan 2020 06:36:00 +0000 (07:36 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 22 Jan 2020 06:44:36 +0000 (07:44 +0100)
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.

include/types/pattern.h

index a2d609ba0d7b42e2215913c32bc141cc38046646..143524f02e8b645b2f980bda5fb00439c630cece 100644 (file)
@@ -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 {