From 10f1fbf589074f5b074062ff2a9c79fa626cce51 Mon Sep 17 00:00:00 2001 From: Greeble <166992735+greeble-dev@users.noreply.github.com> Date: Wed, 26 Mar 2025 17:42:54 +0000 Subject: [PATCH] Remove unused variable `AnimationPlayer::blend_weights`. (#18560) This variable was cruelly abandoned in #15589. Seems fairly safe to remove as it's private. I'm assuming something could have used it via reflection, but that seems unlikely ## Testing ``` cargo run --example animated_mesh cargo run --example animation_graph ``` --- crates/bevy_animation/src/lib.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/crates/bevy_animation/src/lib.rs b/crates/bevy_animation/src/lib.rs index b3ecc085c6..cfb7f33e04 100644 --- a/crates/bevy_animation/src/lib.rs +++ b/crates/bevy_animation/src/lib.rs @@ -685,7 +685,6 @@ impl ActiveAnimation { #[reflect(Component, Default, Clone)] pub struct AnimationPlayer { active_animations: HashMap, - blend_weights: HashMap, } // This is needed since `#[derive(Clone)]` does not generate optimized `clone_from`. @@ -693,13 +692,11 @@ impl Clone for AnimationPlayer { fn clone(&self) -> Self { Self { active_animations: self.active_animations.clone(), - blend_weights: self.blend_weights.clone(), } } fn clone_from(&mut self, source: &Self) { self.active_animations.clone_from(&source.active_animations); - self.blend_weights.clone_from(&source.blend_weights); } }