summaryrefslogtreecommitdiff
path: root/src/mbgl/map/transform.cpp
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2016-10-18 11:55:57 +0300
committerBruno de Oliveira Abinader <bruno@mapbox.com>2016-10-19 08:11:41 +0300
commit3a12dd2d4fec398bc84f88cfddc2ac4a37c3a7f1 (patch)
tree6408cb53d238f03bfb0227fe50cde38f250d5e34 /src/mbgl/map/transform.cpp
parentce243043f5251bb6a7fabc90d8ca3162ade8a44f (diff)
downloadqtlocation-mapboxgl-3a12dd2d4fec398bc84f88cfddc2ac4a37c3a7f1.tar.gz
[core] Skip redundant spherical mercator variable updates in {ease,fly}To
Diffstat (limited to 'src/mbgl/map/transform.cpp')
-rw-r--r--src/mbgl/map/transform.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/mbgl/map/transform.cpp b/src/mbgl/map/transform.cpp
index 41fc36ce27..bf511ed670 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;