aboutsummaryrefslogtreecommitdiffstats
path: root/src/vm.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/vm.rs')
-rw-r--r--src/vm.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/vm.rs b/src/vm.rs
index dd233dc..ea15b5d 100644
--- a/src/vm.rs
+++ b/src/vm.rs
@@ -119,12 +119,6 @@ impl VM {
self.stack.push(value)
}
- fn pop_twice(&mut self) -> (Value, Value) {
- let (a, b) = (self.stack.remove(self.stack.len() - 1),
- self.stack.remove(self.stack.len() - 1));
- (b, a) // this matches the order they were on the stack
- }
-
fn _peek_up(&self, amount: usize) -> Option<&Value> {
self.stack.get(self.stack.len() - amount)
}