Remove logging.

This commit is contained in:
Nolan Darilek 2022-09-07 20:23:22 -05:00
parent d69ef38486
commit 0f4aa54612

View File

@ -236,7 +236,6 @@ fn add_source_handle(
.expect("Failed to create source") .expect("Failed to create source")
.into() .into()
}; };
println!("{:?}: Instantiated source", entity);
source.handle = Some(handle); source.handle = Some(handle);
} }
} }
@ -300,7 +299,6 @@ fn add_sound_without_source(
parents: Query<(&Parent, Option<&Source>)>, parents: Query<(&Parent, Option<&Source>)>,
) { ) {
for entity in &query { for entity in &query {
println!("{:?}: Maybe add source", entity);
let mut has_source = false; let mut has_source = false;
let mut target = entity; let mut target = entity;
while let Ok((parent, source)) = parents.get(target) { while let Ok((parent, source)) = parents.get(target) {
@ -311,7 +309,6 @@ fn add_sound_without_source(
target = **parent; target = **parent;
} }
if !has_source { if !has_source {
println!("Adding default source");
commands.entity(entity).insert(Source::default()); commands.entity(entity).insert(Source::default());
} }
} }
@ -351,7 +348,6 @@ fn change_panner_strategy(
for entity in check.iter() { for entity in check.iter() {
if let Ok(mut source) = sources.get_mut(*entity) { if let Ok(mut source) = sources.get_mut(*entity) {
if source.handle.is_some() { if source.handle.is_some() {
println!("{:?}: Clearing handle for panner strategy", entity);
source.handle = None; source.handle = None;
} }
} }
@ -489,7 +485,6 @@ fn update_source_properties(
} }
} }
if clear_source { if clear_source {
println!("{:?}: Clearing source", entity);
source.handle = None; source.handle = None;
} }
} }
@ -650,11 +645,9 @@ fn events(
matched = true; matched = true;
match event.r#type { match event.r#type {
syz::EventType::Finished => { syz::EventType::Finished => {
println!("{:?} finished", entity);
output.send(SynthizerEvent::Finished(entity)); output.send(SynthizerEvent::Finished(entity));
} }
syz::EventType::Looped => { syz::EventType::Looped => {
println!("{:?} looped", entity);
output.send(SynthizerEvent::Looped(entity)); output.send(SynthizerEvent::Looped(entity));
} }
_ => {} _ => {}