mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Remove dead code
This commit is contained in:
parent
43353bb6ca
commit
e2a756a705
@ -199,21 +199,8 @@ Statement Parser::parseStatement()
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (holds_alternative<Identifier>(elementary))
|
yulAssert(false, "");
|
||||||
{
|
return {};
|
||||||
Identifier identifier = std::get<Identifier>(move(elementary));
|
|
||||||
return ExpressionStatement{identifier.location, { move(identifier) }};
|
|
||||||
}
|
|
||||||
else if (holds_alternative<Literal>(elementary))
|
|
||||||
{
|
|
||||||
Literal literal = std::get<Literal>(move(elementary));
|
|
||||||
return ExpressionStatement{literal.location, { move(literal) }};
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
yulAssert(false, "Invalid elementary operation.");
|
|
||||||
return {};
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Case Parser::parseCase()
|
Case Parser::parseCase()
|
||||||
|
Loading…
Reference in New Issue
Block a user