forked from Mirror/frr
lib: Remove NUMBER_TKN leftovers
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
parent
287a4acf83
commit
ffc9de904b
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue