about summary refs log tree commit diff
path: root/tvix/eval
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/eval')
-rw-r--r--tvix/eval/src/opcode.rs1
-rw-r--r--tvix/eval/src/vm.rs19
2 files changed, 0 insertions, 20 deletions
diff --git a/tvix/eval/src/opcode.rs b/tvix/eval/src/opcode.rs
index c44494d57aa9..fdc916ca7f79 100644
--- a/tvix/eval/src/opcode.rs
+++ b/tvix/eval/src/opcode.rs
@@ -100,7 +100,6 @@ pub enum OpCode {
     OpPushWith(StackIdx),
     OpPopWith,
     OpResolveWith,
-    OpResolveWithOrUpvalue(UpvalueIdx),
 
     // Lists
     OpList(Count),
diff --git a/tvix/eval/src/vm.rs b/tvix/eval/src/vm.rs
index 4e92c152a8d5..50dabf1ee8d5 100644
--- a/tvix/eval/src/vm.rs
+++ b/tvix/eval/src/vm.rs
@@ -597,25 +597,6 @@ impl<'o> VM<'o> {
                 self.push(value)
             }
 
-            OpCode::OpResolveWithOrUpvalue(idx) => {
-                let ident = fallible!(self, self.pop().to_str());
-                match self.resolve_with(ident.as_str()) {
-                    // Variable found in local `with`-stack.
-                    Ok(value) => self.push(value),
-
-                    // Variable not found => check upvalues.
-                    Err(Error {
-                        kind: ErrorKind::UnknownDynamicVariable(_),
-                        ..
-                    }) => {
-                        let value = self.frame().upvalue(idx).clone();
-                        self.push(value);
-                    }
-
-                    Err(err) => return Err(err),
-                }
-            }
-
             OpCode::OpAssertFail => {
                 return Err(self.error(ErrorKind::AssertionFailed));
             }