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:
2024-10-15 19:06:41 -07:00
parent e8461cd58b
commit 8ef30a1376
2 changed files with 0 additions and 9 deletions

View File

@@ -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();

View File

@@ -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();