From 8f96dea8220074059438e9d732d9ce89bddd7fd9 Mon Sep 17 00:00:00 2001 From: Bruno de Oliveira Abinader Date: Sun, 6 Mar 2016 16:15:27 +0200 Subject: [core] Remove default transition duration --- include/mbgl/map/map.hpp | 3 --- include/mbgl/map/update.hpp | 17 ++++++++--------- 2 files changed, 8 insertions(+), 12 deletions(-) (limited to 'include/mbgl/map') diff --git a/include/mbgl/map/map.hpp b/include/mbgl/map/map.hpp index 6edc7f6d2c..3de9dc8891 100644 --- a/include/mbgl/map/map.hpp +++ b/include/mbgl/map/map.hpp @@ -75,9 +75,6 @@ public: void setDefaultFadeDuration(const Duration&); Duration getDefaultFadeDuration() const; - void setDefaultTransitionDuration(const Duration&); - Duration getDefaultTransitionDuration() const; - void setStyleURL(const std::string& url); void setStyleJSON(const std::string& json, const std::string& base = ""); std::string getStyleURL() const; diff --git a/include/mbgl/map/update.hpp b/include/mbgl/map/update.hpp index dbabff5bff..e47feea949 100644 --- a/include/mbgl/map/update.hpp +++ b/include/mbgl/map/update.hpp @@ -5,19 +5,18 @@ namespace mbgl { -enum class Update : uint32_t { +enum class Update : uint8_t { Nothing = 0, Dimensions = 1 << 1, - DefaultTransition = 1 << 2, - Classes = 1 << 3, - RecalculateStyle = 1 << 4, - RenderStill = 1 << 5, - Repaint = 1 << 6, - Annotations = 1 << 7, + Classes = 1 << 2, + RecalculateStyle = 1 << 3, + RenderStill = 1 << 4, + Repaint = 1 << 5, + Annotations = 1 << 6, }; inline Update operator| (const Update& lhs, const Update& rhs) { - return Update(static_cast(lhs) | static_cast(rhs)); + return Update(static_cast(lhs) | static_cast(rhs)); } inline Update& operator|=(Update& lhs, const Update& rhs) { @@ -26,7 +25,7 @@ inline Update& operator|=(Update& lhs, const Update& rhs) { } inline bool operator& (const Update& lhs, const Update& rhs) { - return static_cast(lhs) & static_cast(rhs); + return static_cast(lhs) & static_cast(rhs); } } // namespace mbgl -- cgit v1.2.1