[core] Remove unnecessary Source::Impl::enabled assignment

This flag will get set automatically by Style::recalculate.
This commit is contained in:
John Firebaugh
2017-03-20 12:46:37 -07:00
parent 589d71d7ad
commit efa6c01956

View File

@@ -176,9 +176,7 @@ std::unique_ptr<AnnotationTileData> AnnotationManager::getTileData(const Canonic
void AnnotationManager::updateStyle(Style& style) {
// Create annotation source, point layer, and point bucket
if (!style.getSource(SourceID)) {
std::unique_ptr<Source> source = std::make_unique<AnnotationSource>();
source->baseImpl->enabled = true;
style.addSource(std::move(source));
style.addSource(std::make_unique<AnnotationSource>());
std::unique_ptr<SymbolLayer> layer = std::make_unique<SymbolLayer>(PointLayerID, SourceID);