diff options
author | J William Piggott | 2017-06-10 01:56:41 +0200 |
---|---|---|
committer | J William Piggott | 2017-06-15 21:03:04 +0200 |
commit | cf4b385c357179e918f253db97ffd650c5e2e532 (patch) | |
tree | 43d3122cbea03b6749c29c4d8f4d90be2f4e817a /lib/parse-date.y | |
parent | parse-date: refactor tm_diff() (diff) | |
download | kernel-qcow2-util-linux-cf4b385c357179e918f253db97ffd650c5e2e532.tar.gz kernel-qcow2-util-linux-cf4b385c357179e918f253db97ffd650c5e2e532.tar.xz kernel-qcow2-util-linux-cf4b385c357179e918f253db97ffd650c5e2e532.zip |
parse-date: remove unused year_seen
Signed-off-by: J William Piggott <elseifthen@gmx.com>
Diffstat (limited to 'lib/parse-date.y')
-rw-r--r-- | lib/parse-date.y | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/parse-date.y b/lib/parse-date.y index f96fc0928..6ab7ef2cb 100644 --- a/lib/parse-date.y +++ b/lib/parse-date.y @@ -206,7 +206,6 @@ typedef struct { size_t dsts_seen; size_t times_seen; size_t zones_seen; - size_t year_seen; /* 1 if the user specified explicit ordinal day value, */ int ordinal_day_seen; @@ -229,7 +228,6 @@ static void digits_to_date_time(parser_control *pc, textint text_int) { if (pc->dates_seen && ! pc->year.digits && ! pc->rels_seen && (pc->times_seen || 2 < text_int.digits)) { - pc->year_seen++; pc->year = text_int; } else { if (4 < text_int.digits) { @@ -1368,7 +1366,6 @@ int parse_date(struct timespec *result, char const *p, pc.local_zones_seen = 0; pc.dsts_seen = 0; pc.zones_seen = 0; - pc.year_seen = 0; pc.ordinal_day_seen = 0; #if HAVE_STRUCT_TM_TM_ZONE |