These tokens have existed since version 1.1 but have never been used.

Can we delete them?

Rob

Index: parse.y
===================================================================
RCS file: /cvs/src/usr.sbin/ifstated/parse.y,v
retrieving revision 1.43
diff -u -p -r1.43 parse.y
--- parse.y     2 Jul 2017 15:28:26 -0000       1.43
+++ parse.y     4 Jul 2017 09:33:17 -0000
@@ -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},

Reply via email to