From fc50f8ff96508aa2035c75500b760645eb0535e4 Mon Sep 17 00:00:00 2001 From: Daniel Lupu Date: Sat, 30 Apr 2022 18:34:19 +0300 Subject: [PATCH] remove unnecessary brackets --- libyul/ObjectParser.cpp | 2 -- test/tools/yulopti.cpp | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/libyul/ObjectParser.cpp b/libyul/ObjectParser.cpp index 1993f6b77..2038959de 100644 --- a/libyul/ObjectParser.cpp +++ b/libyul/ObjectParser.cpp @@ -99,9 +99,7 @@ std::shared_ptr ObjectParser::parseObject(Object* _containingObject) fatalParserError(8143_error, "Expected keyword \"data\" or \"object\" or \"}\"."); } if (_containingObject) - { addNamedSubObject(*_containingObject, ret->name, ret); - } expectToken(Token::RBrace); diff --git a/test/tools/yulopti.cpp b/test/tools/yulopti.cpp index 53504e22f..710dab61d 100644 --- a/test/tools/yulopti.cpp +++ b/test/tools/yulopti.cpp @@ -133,9 +133,8 @@ public: auto scanner = make_shared(_charStream); - if (!m_inputWasCodeBlock && scanner->currentToken() == Token::LBrace) { + if (!m_inputWasCodeBlock && scanner->currentToken() == Token::LBrace) m_inputWasCodeBlock = true; - } auto content = parser.parse(scanner, false);