summaryrefslogtreecommitdiff
path: root/platform/android/src/style/sources/source.cpp
diff options
context:
space:
mode:
authorIvo van Dongen <info@ivovandongen.nl>2016-10-19 17:52:43 +0300
committerIvo van Dongen <ivovandongen@users.noreply.github.com>2016-10-20 11:41:24 +0300
commit5527887c4bb1299fd2351e1a0c7550fab5f39bef (patch)
treebc1a0ce9d7a5878c6b2dc6072def90ea0045f315 /platform/android/src/style/sources/source.cpp
parent6d504358807fc851282cfe6a1e7baf2032b7fb91 (diff)
downloadqtlocation-mapboxgl-5527887c4bb1299fd2351e1a0c7550fab5f39bef.tar.gz
[android] geojson source - remove explicit repaint requests
Diffstat (limited to 'platform/android/src/style/sources/source.cpp')
-rw-r--r--platform/android/src/style/sources/source.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/platform/android/src/style/sources/source.cpp b/platform/android/src/style/sources/source.cpp
index 4f306e7c54..f3daa777d1 100644
--- a/platform/android/src/style/sources/source.cpp
+++ b/platform/android/src/style/sources/source.cpp
@@ -35,19 +35,6 @@ namespace android {
return jni::Make<jni::String>(env, source.getID());
}
- void Source::updateStyle(jni::jboolean updateClasses) {
- //Update the style only if attached
- if (ownedSource == nullptr) {
- Update flags = mbgl::Update::RecalculateStyle;
- if(updateClasses) {
- flags = flags | mbgl::Update::Classes;
- }
- map->update(flags);
- } else {
- mbgl::Log::Debug(mbgl::Event::JNI, "Not updating as source is not attached to map (yet)");
- }
- }
-
std::unique_ptr<mbgl::style::Source> Source::releaseCoreSource() {
assert(ownedSource != nullptr);
return std::move(ownedSource);