Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebarron committed Oct 6, 2024
1 parent bcdbb8c commit de83eca
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/algorithm/geo/affine_ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,16 +149,6 @@ impl AffineOps<&AffineTransform> for &dyn NativeArray {
}
}

impl AffineOps<&AffineTransform> for ChunkedPointArray<2> {
type Output = Self;

fn affine_transform(&self, transform: &AffineTransform) -> Self::Output {
self.map(|chunk| chunk.affine_transform(transform))
.try_into()
.unwrap()
}
}

macro_rules! impl_chunked {
($struct_name:ty) => {
impl AffineOps<&AffineTransform> for $struct_name {
Expand All @@ -173,6 +163,7 @@ macro_rules! impl_chunked {
};
}

impl_chunked!(ChunkedPointArray<2>);
impl_chunked!(ChunkedLineStringArray<2>);
impl_chunked!(ChunkedPolygonArray<2>);
impl_chunked!(ChunkedMultiPointArray<2>);
Expand Down

0 comments on commit de83eca

Please sign in to comment.