Refactoring. Delete repetitive code.
--HG-- branch : feature
This commit is contained in:
parent
2406334138
commit
3b36cd8af4
src/libs/qmuparser
|
@ -1858,28 +1858,6 @@ void QmuParserBase::StackDump(const QStack<token_type> &a_stVal, const QStack<to
|
|||
case cmENDIF:
|
||||
qDebug() << "ENDIF\n";
|
||||
break;
|
||||
case cmLE:
|
||||
case cmGE:
|
||||
case cmNEQ:
|
||||
case cmEQ:
|
||||
case cmLT:
|
||||
case cmGT:
|
||||
case cmADD:
|
||||
case cmSUB:
|
||||
case cmMUL:
|
||||
case cmDIV:
|
||||
case cmPOW:
|
||||
case cmLAND:
|
||||
case cmLOR:
|
||||
case cmASSIGN:
|
||||
case cmARG_SEP:
|
||||
case cmVARPOW2:
|
||||
case cmVARPOW3:
|
||||
case cmVARPOW4:
|
||||
case cmVARMUL:
|
||||
case cmPOW2:
|
||||
case cmSTRING:
|
||||
case cmOPRT_POSTFIX:
|
||||
default:
|
||||
qDebug() << stOprt.top().GetCode() << " ";
|
||||
break;
|
||||
|
|
|
@ -502,39 +502,6 @@ void QmuParserByteCode::Finalize()
|
|||
idx = stElse.pop();
|
||||
m_vRPN[idx].Oprt.offset = i - idx;
|
||||
break;
|
||||
case cmLE:
|
||||
case cmGE:
|
||||
case cmNEQ:
|
||||
case cmEQ:
|
||||
case cmLT:
|
||||
case cmGT:
|
||||
case cmADD:
|
||||
case cmSUB:
|
||||
case cmMUL:
|
||||
case cmDIV:
|
||||
case cmPOW:
|
||||
case cmLAND:
|
||||
case cmLOR:
|
||||
case cmASSIGN:
|
||||
case cmBO:
|
||||
case cmBC:
|
||||
case cmARG_SEP:
|
||||
case cmVAR:
|
||||
case cmVAL:
|
||||
case cmVARPOW2:
|
||||
case cmVARPOW3:
|
||||
case cmVARPOW4:
|
||||
case cmVARMUL:
|
||||
case cmPOW2:
|
||||
case cmFUNC:
|
||||
case cmFUNC_STR:
|
||||
case cmFUNC_BULK:
|
||||
case cmSTRING:
|
||||
case cmOPRT_BIN:
|
||||
case cmOPRT_POSTFIX:
|
||||
case cmOPRT_INFIX:
|
||||
case cmEND:
|
||||
case cmUNKNOWN:
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user