From 0ca8dc64b2c2c2d07c6149450a6ab4d672768645 Mon Sep 17 00:00:00 2001 From: Alek Ratzloff Date: Tue, 6 Oct 2020 15:41:13 -0700 Subject: [PATCH] Remove get_local function from Vm It does not use the global/local dichotomy and it wasn't being used Signed-off-by: Alek Ratzloff --- src/vm/mod.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/vm/mod.rs b/src/vm/mod.rs index 4548f14..7cbcaf8 100644 --- a/src/vm/mod.rs +++ b/src/vm/mod.rs @@ -340,10 +340,4 @@ impl<'c> Vm<'c> { let locals = frame.locals_mut(); locals.insert(name.index(), value); } - - fn get_local(&mut self, name: Name) -> Option { - self.frame() - .and_then(|frame| frame.locals().get(&name.index())) - .cloned() - } }