From fa2781d6daa9b836f61ace01f63881582c6371c4 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Sun, 25 Jun 2017 12:23:34 +0100 Subject: LLL: remove useless code --- liblll/CodeFragment.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'liblll') diff --git a/liblll/CodeFragment.cpp b/liblll/CodeFragment.cpp index f637dfb1..794bef81 100644 --- a/liblll/CodeFragment.cpp +++ b/liblll/CodeFragment.cpp @@ -412,11 +412,7 @@ void CodeFragment::constructOperation(sp::utree const& _t, CompilerState& _s) else if (c_instructions.count(us)) { auto it = c_instructions.find(us); - int ea = instructionInfo(it->second).args; - if (ea >= 0) - requireSize(ea); - else - requireMinSize(-ea); + requireSize(instructionInfo(it->second).args); for (unsigned i = code.size(); i; --i) m_asm.append(code[i - 1].m_asm, 1); -- cgit v1.2.3