summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2021-03-08 18:18:32 +0100
committerFlorian Westphal <fw@strlen.de>2021-03-09 22:19:50 +0100
commitf8d5fa7c0523d8058e11c823c4664c9ba9ccf121 (patch)
treea743348632a154689162107af46ffc9b469efa34
parent17bdc4e60f2ba5971e9bab9dbcafd528d786cf7f (diff)
scanner: remove unused tokens
Signed-off-by: Florian Westphal <fw@strlen.de>
-rw-r--r--src/parser_bison.y6
-rw-r--r--src/scanner.l6
2 files changed, 0 insertions, 12 deletions
diff --git a/src/parser_bison.y b/src/parser_bison.y
index bfb18174..abfcccc4 100644
--- a/src/parser_bison.y
+++ b/src/parser_bison.y
@@ -511,9 +511,6 @@ int nft_lex(void *, void *, void *);
%token SECMARK "secmark"
%token SECMARKS "secmarks"
-%token NANOSECOND "nanosecond"
-%token MICROSECOND "microsecond"
-%token MILLISECOND "millisecond"
%token SECOND "second"
%token MINUTE "minute"
%token HOUR "hour"
@@ -565,11 +562,8 @@ int nft_lex(void *, void *, void *);
%token EXTHDR "exthdr"
%token IPSEC "ipsec"
-%token MODE "mode"
%token REQID "reqid"
%token SPNUM "spnum"
-%token TRANSPORT "transport"
-%token TUNNEL "tunnel"
%token IN "in"
%token OUT "out"
diff --git a/src/scanner.l b/src/scanner.l
index 8bde1fbe..1da3b5e0 100644
--- a/src/scanner.l
+++ b/src/scanner.l
@@ -355,9 +355,6 @@ addrstring ({macaddr}|{ip4addr}|{ip6addr})
"quota" { return QUOTA; }
"used" { return USED; }
-"nanosecond" { return NANOSECOND; }
-"microsecond" { return MICROSECOND; }
-"millisecond" { return MILLISECOND; }
"second" { return SECOND; }
"minute" { return MINUTE; }
"hour" { return HOUR; }
@@ -585,11 +582,8 @@ addrstring ({macaddr}|{ip4addr}|{ip6addr})
"exthdr" { return EXTHDR; }
"ipsec" { return IPSEC; }
-"mode" { return MODE; }
"reqid" { return REQID; }
"spnum" { return SPNUM; }
-"transport" { return TRANSPORT; }
-"tunnel" { return TUNNEL; }
"in" { return IN; }
"out" { return OUT; }