summaryrefslogtreecommitdiff
path: root/src/mbgl/style/style.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/style/style.cpp')
-rw-r--r--src/mbgl/style/style.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/mbgl/style/style.cpp b/src/mbgl/style/style.cpp
index f0917c3b60..50de887dbc 100644
--- a/src/mbgl/style/style.cpp
+++ b/src/mbgl/style/style.cpp
@@ -18,7 +18,6 @@
#include <mbgl/style/update_parameters.hpp>
#include <mbgl/style/cascade_parameters.hpp>
#include <mbgl/style/calculation_parameters.hpp>
-#include <mbgl/style/tile_source_impl.hpp>
#include <mbgl/sprite/sprite_atlas.hpp>
#include <mbgl/text/glyph_atlas.hpp>
#include <mbgl/geometry/line_atlas.hpp>
@@ -26,7 +25,6 @@
#include <mbgl/renderer/render_tile.hpp>
#include <mbgl/util/constants.hpp>
#include <mbgl/util/string.hpp>
-#include <mbgl/util/tileset.hpp>
#include <mbgl/platform/log.hpp>
#include <mbgl/math/minmax.hpp>
@@ -295,28 +293,6 @@ Source* Style::getSource(const std::string& id) const {
return it != sources.end() ? it->get() : nullptr;
}
-std::vector<std::string> Style::getAttributions() const {
- std::vector<std::string> result;
- for (const auto& source : sources) {
- switch (source->baseImpl->type) {
- case SourceType::Vector:
- case SourceType::Raster: {
- style::TileSourceImpl* tileSource = static_cast<style::TileSourceImpl*>(source->baseImpl.get());
- auto attribution = tileSource->getAttribution();
- if (!attribution.empty()) {
- result.push_back(std::move(attribution));
- }
- }
-
- case SourceType::GeoJSON:
- case SourceType::Video:
- case SourceType::Annotations:
- break;
- }
- }
- return result;
-}
-
bool Style::hasTransitions() const {
return hasPendingTransitions;
}