Skip to content

Commit

Permalink
Remove a redundant operator
Browse files Browse the repository at this point in the history
  • Loading branch information
eyal0 committed Jul 1, 2020
1 parent a6368ea commit dbd015c
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions bg_operators.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,7 @@ multi_polygon_type_fp operator&(multi_polygon_type_fp const& lhs, box_type_fp co
template <typename point_type_t, typename rhs_t>
multi_polygon_type_fp operator&(const bg::model::polygon<point_type_t>& lhs,
const rhs_t& rhs) {
multi_polygon_type_fp ret;
if (bg::area(rhs) <= 0) {
return ret;
}
if (bg::area(lhs) <= 0) {
return ret;
}
bg::intersection(lhs, rhs, ret);
return ret;
return multi_polygon_type_fp{lhs} & rhs;
}

template multi_polygon_type_fp operator&(polygon_type_fp const&, multi_polygon_type_fp const&);
Expand Down

0 comments on commit dbd015c

Please sign in to comment.