Skip to content

Commit

Permalink
remove redundant check
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkirk committed Oct 21, 2020
1 parent 3ecda61 commit 1ab39e5
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions geo/src/algorithm/dimensions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,10 +293,6 @@ impl<C: CoordinateType> HasDimensions for MultiPoint<C> {

impl<C: CoordinateType> HasDimensions for MultiLineString<C> {
fn is_empty(&self) -> bool {
if self.0.is_empty() {
return true;
}

self.0.iter().all(LineString::is_empty)
}

Expand Down Expand Up @@ -332,10 +328,6 @@ impl<C: CoordinateType> HasDimensions for MultiLineString<C> {

impl<C: CoordinateType> HasDimensions for MultiPolygon<C> {
fn is_empty(&self) -> bool {
if self.0.is_empty() {
return true;
}

self.0.iter().all(Polygon::is_empty)
}

Expand Down

0 comments on commit 1ab39e5

Please sign in to comment.