From 76b9d46cd8670c15252fe1bd93b478a99083e13c Mon Sep 17 00:00:00 2001 From: Joran Honig Date: Mon, 22 Oct 2018 23:22:57 +0200 Subject: [PATCH] Remove unused function --- mythril/disassembler/asm.py | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/mythril/disassembler/asm.py b/mythril/disassembler/asm.py index 80623061..89e2e389 100644 --- a/mythril/disassembler/asm.py +++ b/mythril/disassembler/asm.py @@ -24,29 +24,6 @@ def instruction_list_to_easm(instruction_list): return result -def easm_to_instruction_list(evm_assembly): - regex_CODELINE: Pattern[str] = re.compile("^([A-Z0-9]+)(?:\s+([0-9a-fA-Fx]+))?$") - - instruction_list = [] - - for line in evm_assembly.split("\n"): - - match: Match[str] = re.search(regex_CODELINE, line) - - if not match: - # Invalid code line - continue - - instruction = {"opcode": match.group(1)} - - if match.group(2): - instruction["argument"] = match.group(2)[2:] - - instruction_list.append(instruction) - - return instruction_list - - def get_opcode_from_name(name): for opcode, value in opcodes.items():