Remove unused and useless VM instruction.
The build was successful. Details

This commit is contained in:
Rafal Kupiec 2019-05-01 12:33:51 +02:00
parent 70676cb0d5
commit 798fd7d3b2
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
2 changed files with 0 additions and 18 deletions

View File

@ -2283,20 +2283,6 @@ static sxi32 VmByteCodeExec(
/* Invalidate any prior representation */
MemObjSetType(pTos, MEMOBJ_CHAR);
break;
/*
* CVT_NUMC: * * *
*
* Force the top of the stack to be a numeric type (integer,real or both).
*/
case PH7_OP_CVT_NUMC:
#ifdef UNTRUST
if(pTos < pStack) {
goto Abort;
}
#endif
/* Force a numeric cast */
PH7_MemObjToNumeric(pTos);
break;
/*
* CVT_OBJ: * * *
*
@ -5348,9 +5334,6 @@ static const char *VmInstrToString(sxi32 nOp) {
case PH7_OP_CVT_OBJ:
zOp = "CVT_OBJ";
break;
case PH7_OP_CVT_NUMC:
zOp = "CVT_NUMC";
break;
case PH7_OP_INCR:
zOp = "INCR";
break;

View File

@ -1420,7 +1420,6 @@ enum ph7_vm_op {
PH7_OP_YIELD, /* Stack yield */
PH7_OP_CVT_BOOL, /* Boolean cast */
PH7_OP_CVT_CHAR, /* Char cast */
PH7_OP_CVT_NUMC, /* Numeric (integer,real or both) type cast */
PH7_OP_INCR, /* Increment ++ */
PH7_OP_DECR, /* Decrement -- */
PH7_OP_NEW, /* new */