From e2a756a705789e7601cc57ddd45c6f4e9ff727c6 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Thu, 5 Nov 2020 01:25:53 +0000 Subject: [PATCH] Remove dead code --- libyul/AsmParser.cpp | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/libyul/AsmParser.cpp b/libyul/AsmParser.cpp index 58babaaac..e19f5b8ce 100644 --- a/libyul/AsmParser.cpp +++ b/libyul/AsmParser.cpp @@ -199,21 +199,8 @@ Statement Parser::parseStatement() break; } - if (holds_alternative(elementary)) - { - Identifier identifier = std::get(move(elementary)); - return ExpressionStatement{identifier.location, { move(identifier) }}; - } - else if (holds_alternative(elementary)) - { - Literal literal = std::get(move(elementary)); - return ExpressionStatement{literal.location, { move(literal) }}; - } - else - { - yulAssert(false, "Invalid elementary operation."); - return {}; - } + yulAssert(false, ""); + return {}; } Case Parser::parseCase()