Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[ios, macos] remove unnecesary variables
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian-guerra committed May 5, 2017
1 parent 2909af8 commit 3d5bd61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions platform/darwin/src/MGLPolygon.mm
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,8 @@ - (NSUInteger)hash {
- (CLLocationCoordinate2D)coordinate {
// pole of inaccessibility
auto poi = mapbox::polylabel([self polygon]);
CLLocationCoordinate2D centroid = MGLLocationCoordinate2DFromPoint(poi);

return centroid;
return MGLLocationCoordinate2DFromPoint(poi);
}

- (mbgl::LinearRing<double>)ring {
Expand Down
3 changes: 1 addition & 2 deletions platform/darwin/src/MGLPolyline.mm
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,8 @@ - (CLLocationCoordinate2D)coordinate {

// pole of inaccessibility
auto poi = mapbox::polylabel(polyline);
CLLocationCoordinate2D centroid = MGLLocationCoordinate2DFromPoint(poi);

return centroid;
return MGLLocationCoordinate2DFromPoint(poi);
}

@end
Expand Down

0 comments on commit 3d5bd61

Please sign in to comment.