Remove redundant Style instantiation

reloadStyle calls loadStyleJSON, which also creates the
style. There is no need to create it in reloadStyle as
well.
This commit is contained in:
John Firebaugh
2015-04-22 18:30:24 -07:00
parent fec4cd613c
commit 16168abaea

View File

@@ -113,8 +113,6 @@ util::ptr<Sprite> MapContext::getSprite() {
void MapContext::reloadStyle() {
assert(Environment::currentlyOn(ThreadType::Map));
style = std::make_shared<Style>();
const auto styleInfo = data.getStyleInfo();
if (!styleInfo.url.empty()) {