From: benno Date: Tue, 4 Jul 2017 21:13:03 +0000 (+0000) Subject: delete tokens that have never been used. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=ac553da5401fd0a9feee6e6bcb800884d494cfb0;p=openbsd delete tokens that have never been used. From Rob Pierce ok yacc and gcc --- diff --git a/usr.sbin/ifstated/parse.y b/usr.sbin/ifstated/parse.y index a321001b2b1..01191a49eae 100644 --- a/usr.sbin/ifstated/parse.y +++ b/usr.sbin/ifstated/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.43 2017/07/02 15:28:26 benno Exp $ */ +/* $OpenBSD: parse.y,v 1.44 2017/07/04 21:13:03 benno Exp $ */ /* * Copyright (c) 2004 Ryan McBride @@ -106,7 +106,7 @@ typedef struct { %} %token STATE INITSTATE -%token LINK UP DOWN UNKNOWN ADDED REMOVED +%token LINK UP DOWN UNKNOWN %token IF RUN SETSTATE EVERY INIT %left AND OR %left UNARY @@ -390,14 +390,12 @@ lookup(char *s) /* this has to be sorted always */ static const struct keywords keywords[] = { { "&&", AND}, - { "added", ADDED}, { "down", DOWN}, { "every", EVERY}, { "if", IF}, { "init", INIT}, { "init-state", INITSTATE}, { "link", LINK}, - { "removed", REMOVED}, { "run", RUN}, { "set-state", SETSTATE}, { "state", STATE},