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
......@@ -157,19 +157,6 @@ bool isEnum(AST::ExpressionNode *ast)
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)
{
if (!ast)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment