Skip to content

Commit

Permalink
remove deprecated RemovePoint trait
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkirk committed May 4, 2023
1 parent ef28f3d commit a8c58a0
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 21 deletions.
1 change: 1 addition & 0 deletions geo/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## UNRELEASED

- BREAKING: Remove deprecated `map_coords_inplace` (use `map_coords_in_place` instead)
- BREAKING: Remove deprecated `RotatePoint` trait (use `Rotate` instead)

## 0.24.1

Expand Down
3 changes: 0 additions & 3 deletions geo/src/algorithm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,6 @@ pub use remove_repeated_points::RemoveRepeatedPoints;
/// Rotate a `Geometry` by an angle given in degrees.
pub mod rotate;
pub use rotate::Rotate;
#[doc(hidden)]
#[allow(deprecated)]
pub use rotate::RotatePoint;

/// Scale a `Geometry` up or down by a factor
pub mod scale;
Expand Down
18 changes: 0 additions & 18 deletions geo/src/algorithm/rotate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,24 +91,6 @@ pub trait Rotate<T: CoordFloat> {
fn rotate_around_point_mut(&mut self, degrees: T, point: Point<T>);
}

#[doc(hidden)]
#[deprecated(since = "0.23.0", note = "Use `Rotate::rotate_around_point` instead.")]
pub trait RotatePoint<T: CoordFloat> {
fn rotate_around_point(&self, degrees: T, point: Point<T>) -> Self;
}

#[doc(hidden)]
#[allow(deprecated)]
impl<T, G> RotatePoint<T> for G
where
T: CoordFloat,
G: Rotate<T>,
{
fn rotate_around_point(&self, degrees: T, point: Point<T>) -> Self {
Rotate::rotate_around_point(self, degrees, point)
}
}

impl<G, IP, IR, T> Rotate<T> for G
where
T: CoordFloat,
Expand Down

0 comments on commit a8c58a0

Please sign in to comment.