summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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