diff options
Diffstat (limited to 'src/style/style.cpp')
-rw-r--r-- | src/style/style.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/style/style.cpp b/src/style/style.cpp index 006376172c..c5204720ab 100644 --- a/src/style/style.cpp +++ b/src/style/style.cpp @@ -15,36 +15,9 @@ namespace llmr { Style::Style() { } -void Style::updateSources() { - activeSources.clear(); - updateSources(layers); -} - -const std::set<std::shared_ptr<Source>> Style::getActiveSources() const { - return activeSources; -} - -void Style::updateSources(const std::shared_ptr<StyleLayerGroup> &group) { - if (!group) { - return; - } - for (const std::shared_ptr<StyleLayer> &layer : group->layers) { - if (!layer) continue; - if (layer->bucket) { - if (layer->bucket->source) { - activeSources.emplace(layer->bucket->source); - } - } else if (layer->layers) { - updateSources(layer->layers); - } - } -} - void Style::updateProperties(float z, timestamp now) { uv::writelock lock(mtx); - updateSources(); - if (layers) { layers->updateProperties(z, now); } |