Skip to content

Commit

Permalink
Remove deprecation from component_dyn_tween_system, `resource_dyn_t…
Browse files Browse the repository at this point in the history
…ween_system`, and `asset_dyn_tween_system`
  • Loading branch information
Multirious committed Apr 3, 2024
1 parent 943db8c commit 0c22315
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
3 changes: 0 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ pub mod prelude {
pub use crate::DefaultTweenPlugins;
}

#[allow(deprecated)]
#[cfg(feature = "bevy_asset")]
pub use tween::asset_dyn_tween_system;
#[cfg(feature = "bevy_asset")]
Expand All @@ -167,13 +166,11 @@ pub use tween::asset_tween_system;
#[allow(deprecated)]
pub use tween::asset_tween_system_full;

#[allow(deprecated)]
pub use tween::component_dyn_tween_system;
pub use tween::component_tween_system;
#[allow(deprecated)]
pub use tween::component_tween_system_full;

#[allow(deprecated)]
pub use tween::resource_dyn_tween_system;
pub use tween::resource_tween_system;
#[allow(deprecated)]
Expand Down
21 changes: 9 additions & 12 deletions src/tween/systems.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,9 @@ pub fn apply_component_tween_system<I>(
}

/// System alias for [`component_tween_system`] that uses boxed dynamic [`Interpolator`]. (`Box<dyn Interpolator`)
#[deprecated(
since = "0.3.0",
note = "Use `component_tween_system::<BoxedInterpolator<...>>` for consistency"
)]
///
/// This currently exists for backward compatibility and there's not really any big reason to deprecate it just yet.
/// You might want to use `component_tween_system::<BoxedInterpolator<...>>()` for consistency
pub fn component_dyn_tween_system<C>() -> SystemConfigs
where
C: Component,
Expand Down Expand Up @@ -282,10 +281,9 @@ pub fn apply_resource_tween_system<I>(
}

/// System alias for [`resource_tween_system_full`] that uses boxed dynamic [`Interpolator`]. (`Box<dyn Interpolator`)
#[deprecated(
since = "0.3.0",
note = "Use `resource_tween_system::<BoxedInterpolator<...>>` for consistency"
)]
///
/// This currently exists for backward compatibility and there's not really any big reason to deprecate it just yet.
/// You might want to use `resource_tween_system::<BoxedInterpolator<...>>()` for consistency
pub fn resource_dyn_tween_system<R>() -> SystemConfigs
where
R: Resource,
Expand Down Expand Up @@ -412,11 +410,10 @@ pub fn apply_asset_tween_system<I>(
}

/// System alias for [`asset_tween_system_full`] that uses boxed dynamic [`Interpolator`]. (`Box<dyn Interpolator`)
///
/// This currently exists for backward compatibility and there's not really any big reason to deprecate it just yet.
/// You might want to use `asset_tween_system::<BoxedInterpolator<...>>()` for consistency
#[cfg(feature = "bevy_asset")]
#[deprecated(
since = "0.3.0",
note = "Use `asset_tween_system::<BoxedInterpolator<...>>` for consistency"
)]
pub fn asset_dyn_tween_system<A>() -> SystemConfigs
where
A: Asset,
Expand Down

0 comments on commit 0c22315

Please sign in to comment.