From 6c5e83f8bca990235193a3ef3406a33d6fdf581d Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Thu, 29 Sep 2022 20:38:51 +0300 Subject: chore(tvix/eval): remove unused field in TrackedBindings Change-Id: I65e31e9173e4f5bba19cc4e3d45eb4f8bf91b424 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6808 Reviewed-by: grfn Reviewed-by: sterni Tested-by: BuildkiteCI --- tvix/eval/src/compiler/bindings.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'tvix/eval/src') diff --git a/tvix/eval/src/compiler/bindings.rs b/tvix/eval/src/compiler/bindings.rs index f023e67b5d3e..a9532cc36b14 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, } 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); -- cgit 1.4.1