From 3a12dd2d4fec398bc84f88cfddc2ac4a37c3a7f1 Mon Sep 17 00:00:00 2001 From: Bruno de Oliveira Abinader Date: Tue, 18 Oct 2016 11:55:57 +0300 Subject: [PATCH] [core] Skip redundant spherical mercator variable updates in {ease,fly}To --- src/mbgl/map/transform.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/mbgl/map/transform.cpp b/src/mbgl/map/transform.cpp index 41fc36ce2..bf511ed67 100644 --- a/src/mbgl/map/transform.cpp +++ b/src/mbgl/map/transform.cpp @@ -132,9 +132,6 @@ void Transform::easeTo(const CameraOptions& camera, const AnimationOptions& anim Duration duration = animation.duration ? *animation.duration : Duration::zero(); const double startWorldSize = state.worldSize(); - state.Bc = startWorldSize / util::DEGREES_MAX; - state.Cc = startWorldSize / util::M2PI; - const double startScale = state.scale; const double startAngle = state.angle; const double startPitch = state.pitch; @@ -292,8 +289,6 @@ void Transform::flyTo(const CameraOptions &camera, const AnimationOptions &anima } const double startWorldSize = state.worldSize(); - state.Bc = startWorldSize / util::DEGREES_MAX; - state.Cc = startWorldSize / util::M2PI; state.panning = true; state.scaling = true;