From 1fb74886719806367facb05781d00527a9dd844f Mon Sep 17 00:00:00 2001 From: LianaHus Date: Wed, 16 Sep 2015 13:44:07 +0200 Subject: style --- libsolidity/Parser.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/libsolidity/Parser.cpp b/libsolidity/Parser.cpp index 1ea406be..3fbe4d68 100644 --- a/libsolidity/Parser.cpp +++ b/libsolidity/Parser.cpp @@ -624,12 +624,8 @@ ASTPointer Parser::parseStatement() } case Token::Throw: { - ASTNodeFactory nodeFactory(*this); - ASTPointer expression; - if (m_scanner->next() != Token::Semicolon) - BOOST_THROW_EXCEPTION(createParserError("Expected semicolon.")); - - statement = nodeFactory.createNode(); + statement = ASTNodeFactory(*this).createNode(); + m_scanner->next(); break; } case Token::Identifier: -- cgit v1.2.3