mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Remove unused instructionNames() function in AsmParser
This commit is contained in:
parent
c7b7542f73
commit
65c50b14c8
@ -297,20 +297,6 @@ Expression Parser::parseExpression()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
std::map<evmasm::Instruction, string> const& Parser::instructionNames()
|
|
||||||
{
|
|
||||||
static map<evmasm::Instruction, string> s_instructionNames;
|
|
||||||
if (s_instructionNames.empty())
|
|
||||||
{
|
|
||||||
for (auto const& instr: instructions())
|
|
||||||
s_instructionNames[instr.second] = instr.first;
|
|
||||||
// set the ambiguous instructions to a clear default
|
|
||||||
s_instructionNames[evmasm::Instruction::SELFDESTRUCT] = "selfdestruct";
|
|
||||||
s_instructionNames[evmasm::Instruction::KECCAK256] = "keccak256";
|
|
||||||
}
|
|
||||||
return s_instructionNames;
|
|
||||||
}
|
|
||||||
|
|
||||||
Parser::ElementaryOperation Parser::parseElementaryOperation()
|
Parser::ElementaryOperation Parser::parseElementaryOperation()
|
||||||
{
|
{
|
||||||
RecursionGuard recursionGuard(*this);
|
RecursionGuard recursionGuard(*this);
|
||||||
|
@ -86,7 +86,6 @@ protected:
|
|||||||
ForLoop parseForLoop();
|
ForLoop parseForLoop();
|
||||||
/// Parses a functional expression that has to push exactly one stack element
|
/// Parses a functional expression that has to push exactly one stack element
|
||||||
Expression parseExpression();
|
Expression parseExpression();
|
||||||
static std::map<evmasm::Instruction, std::string> const& instructionNames();
|
|
||||||
/// Parses an elementary operation, i.e. a literal, identifier, instruction or
|
/// Parses an elementary operation, i.e. a literal, identifier, instruction or
|
||||||
/// builtin functian call (only the name).
|
/// builtin functian call (only the name).
|
||||||
ElementaryOperation parseElementaryOperation();
|
ElementaryOperation parseElementaryOperation();
|
||||||
|
Loading…
Reference in New Issue
Block a user