From 14a5240ba7e922e11c1f7ab2a1071a2f1ea86ee3 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Tue, 18 Feb 2025 15:29:54 +0100 Subject: [PATCH] lib/getdate.y: Don't parse a raw number; just a calendar date Our caller, strtoday(), already handles a raw number. Signed-off-by: Alejandro Colomar --- lib/getdate.y | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lib/getdate.y b/lib/getdate.y index 835791d26..c0df43428 100644 --- a/lib/getdate.y +++ b/lib/getdate.y @@ -132,7 +132,6 @@ spec : /* NULL */ ; item : date - | number ; date : tUNUMBER tSNUMBER tSNUMBER { @@ -143,14 +142,6 @@ date : tUNUMBER tSNUMBER tSNUMBER { } ; -number : tUNUMBER - { - yyDay= ($1)%100; - yyMonth= ($1/100)%100; - yyYear = $1/10000; - } - ; - %% -- 2.47.2