Skip to content

Commit

Permalink
Remove Interpolator impl for Arc<Mutex<I>> and Arc<RwLock<I>>
Browse files Browse the repository at this point in the history
  • Loading branch information
Multirious committed Mar 26, 2024
1 parent 7aa8805 commit 40224d3
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions src/interpolate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,28 +158,6 @@ where
}
}

impl<I> Interpolator for Arc<Mutex<I>>
where
I: Interpolator + ?Sized,
{
type Item = I::Item;

fn interpolate(&self, item: &mut Self::Item, value: f32) {
self.lock().expect("valid Mutex").interpolate(item, value)
}
}

impl<I> Interpolator for Arc<RwLock<I>>
where
I: Interpolator,
{
type Item = I::Item;

fn interpolate(&self, item: &mut Self::Item, value: f32) {
self.read().expect("valid RwLock").interpolate(item, value)
}
}

/// Default interpolators
pub struct DefaultInterpolatorsPlugin;
impl Plugin for DefaultInterpolatorsPlugin {
Expand Down

0 comments on commit 40224d3

Please sign in to comment.