From efa6c01956682009b163082f92a3ba8462a53fbf Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Mon, 20 Mar 2017 12:46:37 -0700 Subject: [PATCH] [core] Remove unnecessary Source::Impl::enabled assignment This flag will get set automatically by Style::recalculate. --- src/mbgl/annotation/annotation_manager.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/mbgl/annotation/annotation_manager.cpp b/src/mbgl/annotation/annotation_manager.cpp index ed1518fb7..537ac7015 100644 --- a/src/mbgl/annotation/annotation_manager.cpp +++ b/src/mbgl/annotation/annotation_manager.cpp @@ -176,9 +176,7 @@ std::unique_ptr 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 = std::make_unique(); - source->baseImpl->enabled = true; - style.addSource(std::move(source)); + style.addSource(std::make_unique()); std::unique_ptr layer = std::make_unique(PointLayerID, SourceID);