Make more tests quickcheck-compatible, remove unused code

This commit is contained in:
Jef
2018-12-14 16:35:48 +01:00
parent b832832c76
commit 1e04dc90b6
3 changed files with 28 additions and 39 deletions

View File

@@ -322,9 +322,7 @@ pub fn current_block_state(ctx: &Context) -> BlockState {
ctx.block_state.clone()
}
pub fn return_from_block(ctx: &mut Context, new_depth: StackDepth) {
let diff = ((ctx.block_state.depth.0 - new_depth.0) * WORD_SIZE) as i32;
pub fn return_from_block(ctx: &mut Context) {
if let Some(loc) = ctx.block_state.stack.last().unwrap().location(&ctx.locals) {
match loc {
ValueLocation::Reg(r) => {