Skip to content
Snippets Groups Projects
Commit 148e1fdf authored by Tobias Hunger's avatar Tobias Hunger
Browse files

QMLJS: Remove dead code

Change-Id: Ieb98a43ad1f5169b8da4c5d662a8f73605e2654f
Reviewed-on: http://codereview.qt.nokia.com/352


Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@nokia.com>
parent 6e5db5f4
No related branches found
No related tags found
No related merge requests found
...@@ -157,19 +157,6 @@ bool isEnum(AST::ExpressionNode *ast) ...@@ -157,19 +157,6 @@ bool isEnum(AST::ExpressionNode *ast)
return false; return false;
} }
bool isEnum(AST::ExpressionStatement *ast)
{
if (!ast)
return false;
if (FieldMemberExpression *memberExpr = cast<AST::FieldMemberExpression*>(ast->expression))
return isEnum(memberExpr->base);
else if (cast<IdentifierExpression*>(ast->expression))
return true;
else
return false;
}
static bool isEnum(AST::Statement *ast) static bool isEnum(AST::Statement *ast)
{ {
if (!ast) if (!ast)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment