From a73cc9d8e363b0b3f4fa66c5d9c34625dffbb7e5 Mon Sep 17 00:00:00 2001 From: Ander Conselvan de Oliveira Date: Thu, 7 Mar 2019 15:43:06 +0200 Subject: [core] Remove support for setting minimum and maximum pitch Support for limiting pitch was introduced in commit c4fc89977bcb ([core] Added {set,get}{Min,Max}Pitch) in 2017 but was never exposed by the platform SDKs. Simplify the Map interface by removing this unused feature. v2: Add util::PITCH_MIN --- src/mbgl/map/transform_state.cpp | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'src/mbgl/map/transform_state.cpp') diff --git a/src/mbgl/map/transform_state.cpp b/src/mbgl/map/transform_state.cpp index e911067c5b..73c61fdf0f 100644 --- a/src/mbgl/map/transform_state.cpp +++ b/src/mbgl/map/transform_state.cpp @@ -221,26 +221,6 @@ double TransformState::getMaxZoom() const { return scaleZoom(max_scale); } -void TransformState::setMinPitch(double minPitch) { - if (minPitch <= getMaxPitch()) { - min_pitch = minPitch; - } -} - -double TransformState::getMinPitch() const { - return min_pitch; -} - -void TransformState::setMaxPitch(double maxPitch) { - if (maxPitch >= getMinPitch()) { - max_pitch = maxPitch; - } -} - -double TransformState::getMaxPitch() const { - return max_pitch; -} - #pragma mark - Rotation float TransformState::getBearing() const { -- cgit v1.2.1