[PATCH 08/10] parse-date: remove unused year_seen

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: J William Piggott <elseifthen@xxxxxxx>
---
 lib/parse-date.y | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/lib/parse-date.y b/lib/parse-date.y
index f96fc09..6ab7ef2 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
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux