From 783037e8cc3100ecad49a96acd6cb8de40a16664 Mon Sep 17 00:00:00 2001 From: Nathan Adams Date: Mon, 16 Dec 2019 16:24:06 +0100 Subject: [PATCH] chore: Removed array debug code that snuck in. Oops! --- core/src/avm1/globals/array.rs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/core/src/avm1/globals/array.rs b/core/src/avm1/globals/array.rs index 58d7f32ad..f868a6dbc 100644 --- a/core/src/avm1/globals/array.rs +++ b/core/src/avm1/globals/array.rs @@ -255,24 +255,8 @@ pub fn splice<'gc>( } removed.set_length(context.gc_context, to_remove); - if to_remove == 2 && args.len() == 5 { - dbg!( - &start, - &count, - &removed, - &to_remove, - &to_add, - &offset, - &old_length, - &new_length - ); - } - if offset < 0 { for i in (start + to_add.len()..new_length).rev() { - if to_remove == 2 && args.len() == 5 { - dbg!(&i, this.array_element((i as i32 + offset) as usize)); - } this.set_array_element( i, this.array_element((i as i32 + offset) as usize),