summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDane Springmeyer <dane@mapbox.com>2019-12-18 17:43:16 -0600
committerDane Springmeyer <dane@mapbox.com>2019-12-18 17:43:16 -0600
commitdbc312f10c1314cd09038abe7a5ffec9760ef2a3 (patch)
tree6e69c8fa6ce571a867ffd461d50033dea1d2d220
parent28ccb0ccc08416b9e8ced25ae938a50ca4a00151 (diff)
downloadqtlocation-mapboxgl-upstream/remove-sourcesmap.tar.gz
remove unused codeupstream/remove-sourcesmap
-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.