Remove unused variables.

This commit is contained in:
Nolan Darilek 2022-09-09 08:14:15 -05:00
parent 0f4aa54612
commit b60183c448

View File

@ -194,7 +194,6 @@ fn update_listener(
fn add_source_handle( fn add_source_handle(
context: Res<syz::Context>, context: Res<syz::Context>,
mut query: Query<( mut query: Query<(
Entity,
&mut Source, &mut Source,
Option<&PannerStrategy>, Option<&PannerStrategy>,
Option<&GlobalTransform>, Option<&GlobalTransform>,
@ -202,7 +201,7 @@ fn add_source_handle(
Option<&ScalarPan>, Option<&ScalarPan>,
)>, )>,
) { ) {
for (entity, mut source, panner_strategy, transform, angular_pan, scalar_pan) in &mut query { for (mut source, panner_strategy, transform, angular_pan, scalar_pan) in &mut query {
if source.handle.is_none() { if source.handle.is_none() {
let panner_strategy = panner_strategy.cloned().unwrap_or_default(); let panner_strategy = panner_strategy.cloned().unwrap_or_default();
let handle: syz::Source = if let Some(transform) = transform { let handle: syz::Source = if let Some(transform) = transform {
@ -357,7 +356,6 @@ fn change_panner_strategy(
fn update_source_properties( fn update_source_properties(
context: Res<syz::Context>, context: Res<syz::Context>,
mut query: Query<( mut query: Query<(
Entity,
&mut Source, &mut Source,
Option<&DistanceModel>, Option<&DistanceModel>,
Option<&DistanceRef>, Option<&DistanceRef>,
@ -371,7 +369,6 @@ fn update_source_properties(
)>, )>,
) { ) {
for ( for (
entity,
mut source, mut source,
distance_model, distance_model,
distance_ref, distance_ref,