about summary refs log tree commit diff
path: root/tvix/eval/src
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-09-29T17·38+0300
committertazjin <tazjin@tvl.su>2022-09-30T12·31+0000
commit6c5e83f8bca990235193a3ef3406a33d6fdf581d (patch)
treec39035b6f5b62f780272602e290f8bd88d63d20b /tvix/eval/src
parentf0f5435e25541c6f1ae17e77d44c54df881320cc (diff)
chore(tvix/eval): remove unused field in TrackedBindings r/5004
Change-Id: I65e31e9173e4f5bba19cc4e3d45eb4f8bf91b424
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6808
Reviewed-by: grfn <grfn@gws.fyi>
Reviewed-by: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/eval/src')
-rw-r--r--tvix/eval/src/compiler/bindings.rs10
1 files changed, 3 insertions, 7 deletions
diff --git a/tvix/eval/src/compiler/bindings.rs b/tvix/eval/src/compiler/bindings.rs
index f023e67b5d..a9532cc36b 100644
--- a/tvix/eval/src/compiler/bindings.rs
+++ b/tvix/eval/src/compiler/bindings.rs
@@ -196,16 +196,12 @@ impl TrackedBinding {
 }
 
 struct TrackedBindings {
-    kind: BindingsKind,
     bindings: Vec<TrackedBinding>,
 }
 
 impl TrackedBindings {
-    fn new(kind: BindingsKind) -> Self {
-        TrackedBindings {
-            kind,
-            bindings: vec![],
-        }
+    fn new() -> Self {
+        TrackedBindings { bindings: vec![] }
     }
 
     /// Attempt to merge an entry into an existing matching binding, assuming
@@ -633,7 +629,7 @@ impl Compiler<'_> {
         self.scope_mut().begin_scope();
 
         // Vector to track all observed bindings.
-        let mut bindings = TrackedBindings::new(kind);
+        let mut bindings = TrackedBindings::new();
 
         let inherit_froms = self.compile_plain_inherits(slot, kind, &mut count, node);
         self.declare_namespaced_inherits(kind, inherit_froms, &mut bindings);