]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
parse-date: remove unused ordinal_day_seen
authorJ William Piggott <elseifthen@gmx.com>
Sat, 10 Jun 2017 00:22:23 +0000 (20:22 -0400)
committerJ William Piggott <elseifthen@gmx.com>
Thu, 15 Jun 2017 19:03:04 +0000 (15:03 -0400)
Signed-off-by: J William Piggott <elseifthen@gmx.com>
lib/parse-date.y

index 6ab7ef2cbf9ebaa3cb4010a5dea77527d9b573ff..c06616ab83629306dd45ce20e6fe5f1be74fe0b8 100644 (file)
@@ -207,9 +207,6 @@ typedef struct {
        size_t times_seen;
        size_t zones_seen;
 
-       /* 1 if the user specified explicit ordinal day value, */
-       int ordinal_day_seen;
-
        /* Table of local time zone abbreviations, null terminated. */
        table local_time_zone_table[3];
 } parser_control;
@@ -480,12 +477,10 @@ day:
        | tORDINAL tDAY {
                pc->day_ordinal = $1;
                pc->day_number = $2;
-               pc->ordinal_day_seen = 1;
          }
        | tUNUMBER tDAY {
                pc->day_ordinal = $1.value;
                pc->day_number = $2;
-               pc->ordinal_day_seen = 1;
          }
 ;
 
@@ -1366,7 +1361,6 @@ int parse_date(struct timespec *result, char const *p,
        pc.local_zones_seen = 0;
        pc.dsts_seen = 0;
        pc.zones_seen = 0;
-       pc.ordinal_day_seen = 0;
 
 #if HAVE_STRUCT_TM_TM_ZONE
        pc.local_time_zone_table[0].name = tmp->tm_zone;