Skip to content

Commit

Permalink
removed remark token type, it was not being used
Browse files Browse the repository at this point in the history
  • Loading branch information
thunder422 committed Jun 25, 2013
1 parent 046c47c commit 61dc082
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
3 changes: 0 additions & 3 deletions test_ibcp.cpp
Expand Up @@ -302,9 +302,6 @@ bool Tester::printToken(QTextStream &cout, Token *token, bool tab)
<< qSetFieldWidth(0) << info;
switch (token->type())
{
case Remark_TokenType:
cout << ' ' << code_name[token->code()];
// fall thru
case DefFuncN_TokenType:
case NoParen_TokenType:
cout << ' ' << qSetFieldWidth(7) << datatype_name[token->dataType()]
Expand Down
4 changes: 0 additions & 4 deletions token.cpp
Expand Up @@ -126,7 +126,6 @@ void Token::initialize(void)
s_table[Operator_TokenType] = true;
s_table[IntFuncN_TokenType] = true;
s_table[IntFuncP_TokenType] = true;
// FIXME should Remark_TokenType also have table entry flag set?
}


Expand Down Expand Up @@ -156,8 +155,6 @@ QString Token::text(void)

switch (m_type)
{
case Remark_TokenType:
// fall thru
case DefFuncN_TokenType:
case NoParen_TokenType:
string = m_string;
Expand Down Expand Up @@ -270,7 +267,6 @@ bool Token::operator==(const Token &other) const
return false;
}
// now fall thru to compare string of constant
case Remark_TokenType:
case DefFuncN_TokenType:
case NoParen_TokenType:
case DefFuncP_TokenType:
Expand Down
1 change: 0 additions & 1 deletion token.h
Expand Up @@ -38,7 +38,6 @@ enum TokenType
Operator_TokenType,
IntFuncN_TokenType,
IntFuncP_TokenType,
Remark_TokenType,
Constant_TokenType,
DefFuncN_TokenType,
DefFuncP_TokenType,
Expand Down

0 comments on commit 61dc082

Please sign in to comment.