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

Commit

Permalink
refs #5983: removed one more redundant check
Browse files Browse the repository at this point in the history
  • Loading branch information
incanus committed Aug 17, 2016
1 parent 035337d commit bd0c8e9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions platform/ios/src/MGLMapView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -2534,11 +2534,8 @@ - (void)setCamera:(MGLMapCamera *)camera withDuration:(NSTimeInterval)duration a
if ( ! [self viewportWouldChangeWithCamera:camera]) return completion();

self.userTrackingMode = MGLUserTrackingModeNone;

_mbglMap->cancelTransitions();
if ([self.camera isEqual:camera])
{
return;
}

mbgl::CameraOptions cameraOptions = [self cameraOptionsForAnimatingToCamera:camera edgePadding:self.contentInset];
mbgl::AnimationOptions animationOptions;
Expand Down

0 comments on commit bd0c8e9

Please sign in to comment.