summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2016-09-22 00:27:22 +0000
committerQuentin Young <qlyoung@cumulusnetworks.com>2016-09-22 00:27:22 +0000
commitffc9de904b19ce03e41c6ebb533804c85001d1ce (patch)
tree1541373fccbe02d404c916f2e83d01c732f14b16
parent287a4acf837fbb0a09e5e784134714e6fe2a84a8 (diff)
lib: Remove NUMBER_TKN leftovers
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
-rw-r--r--lib/command.h2
-rw-r--r--lib/command_parse.y4
2 files changed, 0 insertions, 6 deletions
diff --git a/lib/command.h b/lib/command.h
index ddb61c686f..eef4b558af 100644
--- a/lib/command.h
+++ b/lib/command.h
@@ -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
diff --git a/lib/command_parse.y b/lib/command_parse.y
index d8ba98db86..63a6f83c35 100644
--- a/lib/command_parse.y
+++ b/lib/command_parse.y
@@ -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