From 2fc24f0f5829b33391ddf1c945f9831b734ac6f7 Mon Sep 17 00:00:00 2001 From: Jakub Doka Date: Sat, 26 Oct 2024 00:37:39 +0200 Subject: [PATCH] ups --- lang/src/son.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lang/src/son.rs b/lang/src/son.rs index 3ceb98e..f6ac48c 100644 --- a/lang/src/son.rs +++ b/lang/src/son.rs @@ -28,7 +28,6 @@ use { hashbrown::hash_map, hbbytecode::DisasmError, regalloc2::VReg, - std::panic, }; const VOID: Nid = 0; @@ -4090,9 +4089,6 @@ impl<'a> Function<'a> { buf.push(o); while let Some(&n) = buf.get(cursor) { for &i in &self.nodes[n].inputs[1..] { - if self.nodes[i].inputs.is_empty() { - std::println!("{:?}", self.nodes[i]); - } if self.nodes[n].inputs.first() == self.nodes[i].inputs.first() && self.nodes[i].outputs.iter().all(|&o| { self.nodes[o].inputs.first() != self.nodes[i].inputs.first() @@ -4115,9 +4111,6 @@ impl<'a> Function<'a> { buf.push(o); while let Some(&n) = buf.get(cursor) { for &i in &self.nodes[n].inputs[1..] { - if self.nodes[i].inputs.is_empty() { - std::println!("{:?}", self.nodes[i]); - } if self.nodes[n].inputs.first() == self.nodes[i].inputs.first() && self.nodes[i].outputs.iter().all(|&o| { self.nodes[o].inputs.first() != self.nodes[i].inputs.first() @@ -4134,8 +4127,6 @@ impl<'a> Function<'a> { debug_assert!(outputs.len() == buf.len() || outputs.len() == buf.len() + 1,); - std::println!("{:?}\n{:?}", outputs, buf); - if buf.len() + 1 == outputs.len() { outputs.remove(outputs.len() - 1); }