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 <alekratz@gmail.com>
This commit is contained in:
2020-10-06 15:41:13 -07:00
parent 43c4a9c531
commit 0ca8dc64b2

View File

@@ -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<ObjRef> {
self.frame()
.and_then(|frame| frame.locals().get(&name.index()))
.cloned()
}
}