Remove Nop instruction
I forget what it was used for but it's not being used now. Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
@@ -109,11 +109,6 @@ fn disassemble_chunk(chunk: &Chunk, globals: &Vec<String>, constants: &Vec<ObjP>
|
||||
arg = format!("{len}");
|
||||
info = String::new();
|
||||
}
|
||||
Op::Nop => {
|
||||
op_str = "NOP";
|
||||
arg = String::new();
|
||||
info = String::new();
|
||||
}
|
||||
Op::EvalModule => {
|
||||
op_str = "EVAL_MODULE";
|
||||
arg = String::new();
|
||||
|
||||
@@ -34,7 +34,6 @@ pub enum Op {
|
||||
BuildList(ListLen),
|
||||
|
||||
// VM control
|
||||
Nop,
|
||||
EvalModule,
|
||||
ExitModule,
|
||||
}
|
||||
@@ -462,9 +461,6 @@ impl<'c> Vm<'c> {
|
||||
let list = List::create(list_items);
|
||||
self.push(list);
|
||||
}
|
||||
Op::Nop => {
|
||||
continue;
|
||||
}
|
||||
Op::EvalModule => {
|
||||
// check if the module has been evaluated yet
|
||||
let module = self.peek();
|
||||
|
||||
Reference in New Issue
Block a user