summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDane Springmeyer <springmeyer@users.noreply.github.com>2019-12-19 14:39:38 -0600
committerGitHub <noreply@github.com>2019-12-19 14:39:38 -0600
commitd009ce88e012eba46bd4f30b21ab32bc53020f8a (patch)
tree9676b4ea36c7330796757ee6541638b8eedca6dd
parentcc684df73655e04051dea6540959838735195c85 (diff)
downloadqtlocation-mapboxgl-d009ce88e012eba46bd4f30b21ab32bc53020f8a.tar.gz
remove unused code (#16077)
-rw-r--r--src/mbgl/style/parser.cpp1
-rw-r--r--src/mbgl/style/parser.hpp1
2 files changed, 0 insertions, 2 deletions
diff --git a/src/mbgl/style/parser.cpp b/src/mbgl/style/parser.cpp
index b90de3e9b9..9d9b80276a 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 f992519083..f25e85fbf7 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<Layer>&);
- std::unordered_map<std::string, const Source*> sourcesMap;
std::unordered_map<std::string, std::pair<const JSValue&, std::unique_ptr<Layer>>> layersMap;
// Store a stack of layer IDs we're parsing right now. This is to prevent reference cycles.