Don't generate spooky comment on imported procedures (closes #10)

- Delete some dead code
This commit is contained in:
phobos2077
2023-07-11 22:33:20 +02:00
parent 69445cf21a
commit aae49a745c
4 changed files with 2 additions and 38 deletions
-35
View File
@@ -57,8 +57,6 @@ void COpcode::Serialize()
throw std::exception();
}
if ((m_wOperator < O_OPERATOR) ||
((m_wOperator >= O_END_OP) &&
(m_wOperator != O_STRINGOP) &&
@@ -102,39 +100,6 @@ void COpcode::Expect(uint16_t wOperator, bool bArgumentFound, uint32_t ulArgumen
}
}
void COpcode::Expect(int nCount, uint16_t pwOperators[])
{
Serialize();
bool bFound = false;
for(int i = 0; i < nCount; i++)
{
if (m_wOperator == pwOperators[i])
{
bFound = true;
break;
}
}
if (!bFound)
{
printf("Error: Unexpected opcode (");
for(int i = 0; i < nCount; i++)
{
if (i != 0)
{
printf(" or ");
}
printf("0x%04X", pwOperators[i]);
}
printf(" expected, but 0x%04X found)\n", m_wOperator);
throw std::exception();
}
}
bool COpcode::HasArgument() const
{
return ((m_wOperator == O_STRINGOP) || (m_wOperator == O_FLOATOP) || (m_wOperator == O_INTOP));