From 16168abaea3d27bca12282c424d7b98ed91bb41f Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Wed, 22 Apr 2015 18:30:24 -0700 Subject: [PATCH] Remove redundant Style instantiation reloadStyle calls loadStyleJSON, which also creates the style. There is no need to create it in reloadStyle as well. --- src/mbgl/map/map_context.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/mbgl/map/map_context.cpp b/src/mbgl/map/map_context.cpp index 3ab3f284a..012fae2d0 100644 --- a/src/mbgl/map/map_context.cpp +++ b/src/mbgl/map/map_context.cpp @@ -113,8 +113,6 @@ util::ptr MapContext::getSprite() { void MapContext::reloadStyle() { assert(Environment::currentlyOn(ThreadType::Map)); - style = std::make_shared