parse-date: remove unused year_seen
Signed-off-by: J William Piggott <elseifthen@gmx.com>
This commit is contained in:
parent
1d6702edfd
commit
cf4b385c35
|
@ -206,7 +206,6 @@ typedef struct {
|
||||||
size_t dsts_seen;
|
size_t dsts_seen;
|
||||||
size_t times_seen;
|
size_t times_seen;
|
||||||
size_t zones_seen;
|
size_t zones_seen;
|
||||||
size_t year_seen;
|
|
||||||
|
|
||||||
/* 1 if the user specified explicit ordinal day value, */
|
/* 1 if the user specified explicit ordinal day value, */
|
||||||
int ordinal_day_seen;
|
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
|
if (pc->dates_seen && ! pc->year.digits
|
||||||
&& ! pc->rels_seen && (pc->times_seen || 2 < text_int.digits)) {
|
&& ! pc->rels_seen && (pc->times_seen || 2 < text_int.digits)) {
|
||||||
pc->year_seen++;
|
|
||||||
pc->year = text_int;
|
pc->year = text_int;
|
||||||
} else {
|
} else {
|
||||||
if (4 < text_int.digits) {
|
if (4 < text_int.digits) {
|
||||||
|
@ -1368,7 +1366,6 @@ int parse_date(struct timespec *result, char const *p,
|
||||||
pc.local_zones_seen = 0;
|
pc.local_zones_seen = 0;
|
||||||
pc.dsts_seen = 0;
|
pc.dsts_seen = 0;
|
||||||
pc.zones_seen = 0;
|
pc.zones_seen = 0;
|
||||||
pc.year_seen = 0;
|
|
||||||
pc.ordinal_day_seen = 0;
|
pc.ordinal_day_seen = 0;
|
||||||
|
|
||||||
#if HAVE_STRUCT_TM_TM_ZONE
|
#if HAVE_STRUCT_TM_TM_ZONE
|
||||||
|
|
Loading…
Reference in New Issue