]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: Remove NUMBER_TKN leftovers
authorQuentin Young <qlyoung@cumulusnetworks.com>
Thu, 22 Sep 2016 00:27:22 +0000 (00:27 +0000)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Thu, 22 Sep 2016 00:27:22 +0000 (00:27 +0000)
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
lib/command.h
lib/command_parse.y

index ddb61c686f8b2ebfb9bef49b7b4c6804e2776127..eef4b558afdf8a988878a47f25ba2f16316d9bc7 100644 (file)
@@ -151,7 +151,6 @@ struct cmd_node
 enum cmd_token_type
 {
   WORD_TKN,         // words
-  NUMBER_TKN,       // integral numbers
   VARIABLE_TKN,     // almost anything
   RANGE_TKN,        // integer range
   IPV4_TKN,         // IPV4 addresses
@@ -177,7 +176,6 @@ struct cmd_token
   char *text;                   // token text
   char *desc;                   // token description
 
-  long long value;              // for numeric types
   long long min, max;           // for ranges
 
   char *arg;                    // user input that matches this token
index d8ba98db861d57bb18ff45fb406bff1ca8b75df8..63a6f83c3599b6cb36857b163649e91518b61e60 100644 (file)
@@ -521,10 +521,6 @@ cmp_token (struct cmd_token *first, struct cmd_token *second)
       if (first->min != second->min || first->max != second->max)
         return 0;
       break;
-    case NUMBER_TKN:
-      if (first->value != second->value) return 0;
-      break;
-
     /* selectors and options should be equal if their subgraphs are equal,
      * but the graph isomorphism problem is not known to be solvable in
      * polynomial time so we consider selectors and options inequal in all