diff options
Diffstat (limited to 'src/mbgl/map')
-rw-r--r-- | src/mbgl/map/map.cpp | 30 | ||||
-rw-r--r-- | src/mbgl/map/update.hpp | 1 |
2 files changed, 0 insertions, 31 deletions
diff --git a/src/mbgl/map/map.cpp b/src/mbgl/map/map.cpp index 16254f6e9b..c6d3ed9915 100644 --- a/src/mbgl/map/map.cpp +++ b/src/mbgl/map/map.cpp @@ -1053,25 +1053,6 @@ bool Map::isFullyLoaded() const { return impl->style ? impl->style->isLoaded() : false; } -void Map::addClass(const std::string& className) { - if (impl->style && impl->style->addClass(className)) { - impl->onUpdate(Update::Classes); - } -} - -void Map::removeClass(const std::string& className) { - if (impl->style && impl->style->removeClass(className)) { - impl->onUpdate(Update::Classes); - } -} - -void Map::setClasses(const std::vector<std::string>& classNames) { - if (impl->style) { - impl->style->setClasses(classNames); - impl->onUpdate(Update::Classes); - } -} - style::TransitionOptions Map::getTransitionOptions() const { if (impl->style) { return impl->style->getTransitionOptions(); @@ -1085,17 +1066,6 @@ void Map::setTransitionOptions(const style::TransitionOptions& options) { } } -bool Map::hasClass(const std::string& className) const { - return impl->style ? impl->style->hasClass(className) : false; -} - -std::vector<std::string> Map::getClasses() const { - if (impl->style) { - return impl->style->getClasses(); - } - return {}; -} - void Map::setSourceTileCacheSize(size_t size) { if (size != impl->sourceCacheSize) { impl->sourceCacheSize = size; diff --git a/src/mbgl/map/update.hpp b/src/mbgl/map/update.hpp index 29f2583f7c..82d98284f5 100644 --- a/src/mbgl/map/update.hpp +++ b/src/mbgl/map/update.hpp @@ -7,7 +7,6 @@ namespace mbgl { enum class Update { Nothing = 0, Repaint = 1 << 0, - Classes = 1 << 2, AnnotationStyle = 1 << 6, AnnotationData = 1 << 7 }; |