Remove unused Vm::frame_stack_mut() function

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2024-10-15 19:09:04 -07:00
parent 8ef30a1376
commit 14e2e4d008

View File

@@ -127,12 +127,6 @@ impl<'c> Vm<'c> {
&self.stack()[self.frame().stack_base..] &self.stack()[self.frame().stack_base..]
} }
/// Mutably gets the current stack, starting at the frame's stack base.
pub fn frame_stack_mut(&mut self) -> &mut [ObjP] {
let index = self.frame().stack_base;
&mut self.stack_mut()[index..]
}
/// Current stack frame. /// Current stack frame.
pub fn frame(&self) -> &Frame { pub fn frame(&self) -> &Frame {
self.frames.last().unwrap() self.frames.last().unwrap()