summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2015-05-28 16:00:00 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2015-06-01 13:22:02 -0700
commit925cc91ef2125d6601cf83e50a7d801368698595 (patch)
treef5819f42a97dc08b6b17263ef18236d94bec7ecf /src
parentec06bb7e3cb1858b2f79f8826a9f1e923fdbaf24 (diff)
downloadqtlocation-mapboxgl-925cc91ef2125d6601cf83e50a7d801368698595.tar.gz
Remove unused; fix naming style
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/style/style.cpp10
-rw-r--r--src/mbgl/style/style.hpp4
2 files changed, 5 insertions, 9 deletions
diff --git a/src/mbgl/style/style.cpp b/src/mbgl/style/style.cpp
index 520cd12a70..035d148787 100644
--- a/src/mbgl/style/style.cpp
+++ b/src/mbgl/style/style.cpp
@@ -19,13 +19,12 @@
namespace mbgl {
-Style::Style(const std::string& data, const std::string& base_,
+Style::Style(const std::string& data, const std::string&,
uv_loop_t* loop, Environment& env)
: glyphStore(std::make_unique<GlyphStore>(loop, env)),
glyphAtlas(std::make_unique<GlyphAtlas>(1024, 1024)),
spriteAtlas(std::make_unique<SpriteAtlas>(512, 512)),
lineAtlas(std::make_unique<LineAtlas>(512, 512)),
- base(base_),
mtx(std::make_unique<uv::rwlock>()),
workers(4) {
@@ -42,9 +41,8 @@ Style::Style(const std::string& data, const std::string& base_,
sources = parser.getSources();
layers = parser.getLayers();
- sprite_url = parser.getSprite();
- glyph_url = parser.getGlyphURL();
- glyphStore->setURL(glyph_url);
+ spriteURL = parser.getSprite();
+ glyphStore->setURL(parser.getGlyphURL());
for (const auto& source : sources) {
source->setObserver(this);
@@ -71,7 +69,7 @@ void Style::update(MapData& data,
TexturePool& texturePool) {
const float pixelRatio = transform.getPixelRatio();
if (!sprite || !sprite->hasPixelRatio(pixelRatio)) {
- sprite = std::make_unique<Sprite>(sprite_url, pixelRatio);
+ sprite = std::make_unique<Sprite>(spriteURL, pixelRatio);
sprite->setObserver(this);
spriteAtlas->resize(pixelRatio);
diff --git a/src/mbgl/style/style.hpp b/src/mbgl/style/style.hpp
index 1c70e352e8..c70f019c43 100644
--- a/src/mbgl/style/style.hpp
+++ b/src/mbgl/style/style.hpp
@@ -90,9 +90,7 @@ private:
Observer* observer = nullptr;
- std::string base;
- std::string sprite_url;
- std::string glyph_url;
+ std::string spriteURL;
PropertyTransition defaultTransition;
std::unique_ptr<uv::rwlock> mtx;
ZoomHistory zoomHistory;