diff --git a/src/mbgl/style/parser.cpp b/src/mbgl/style/parser.cpp index b90de3e9b..9d9b80276 100644 --- a/src/mbgl/style/parser.cpp +++ b/src/mbgl/style/parser.cpp @@ -158,7 +158,6 @@ void Parser::parseSources(const JSValue& value) { continue; } - sourcesMap.emplace(id, (*source).get()); sources.emplace_back(std::move(*source)); } } diff --git a/src/mbgl/style/parser.hpp b/src/mbgl/style/parser.hpp index f99251908..f25e85fbf 100644 --- a/src/mbgl/style/parser.hpp +++ b/src/mbgl/style/parser.hpp @@ -52,7 +52,6 @@ private: void parseLayers(const JSValue&); void parseLayer(const std::string& id, const JSValue&, std::unique_ptr&); - std::unordered_map sourcesMap; std::unordered_map>> layersMap; // Store a stack of layer IDs we're parsing right now. This is to prevent reference cycles.