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:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user