forked from qt-creator/qt-creator
QMLJS: Remove dead code
Change-Id: Ieb98a43ad1f5169b8da4c5d662a8f73605e2654f Reviewed-on: http://codereview.qt.nokia.com/352 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user