summaryrefslogtreecommitdiff
path: root/platform/default
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2017-03-13 14:58:40 +0200
committerBruno de Oliveira Abinader <bruno@mapbox.com>2017-03-15 14:53:32 +0200
commit2aa20ff47128e1840a51357e02cc691656cffe74 (patch)
tree800a89010656f72e2ccb7744a1846352b746800b /platform/default
parent2a25b026af8247c446d32353479e11bcb76673e4 (diff)
downloadqtlocation-mapboxgl-2aa20ff47128e1840a51357e02cc691656cffe74.tar.gz
[glfw] Support mbgl::MapObserver
Diffstat (limited to 'platform/default')
-rw-r--r--platform/default/mbgl/gl/headless_backend.cpp6
-rw-r--r--platform/default/mbgl/gl/headless_backend.hpp5
2 files changed, 0 insertions, 11 deletions
diff --git a/platform/default/mbgl/gl/headless_backend.cpp b/platform/default/mbgl/gl/headless_backend.cpp
index c105fd6b84..6ae19356fb 100644
--- a/platform/default/mbgl/gl/headless_backend.cpp
+++ b/platform/default/mbgl/gl/headless_backend.cpp
@@ -50,10 +50,4 @@ void HeadlessBackend::invalidate() {
assert(false);
}
-void HeadlessBackend::notifyMapChange(MapChange change) {
- if (mapChangeCallback) {
- mapChangeCallback(change);
- }
-}
-
} // namespace mbgl
diff --git a/platform/default/mbgl/gl/headless_backend.hpp b/platform/default/mbgl/gl/headless_backend.hpp
index e632d0feb6..63e3cec9ee 100644
--- a/platform/default/mbgl/gl/headless_backend.hpp
+++ b/platform/default/mbgl/gl/headless_backend.hpp
@@ -18,9 +18,6 @@ public:
~HeadlessBackend() override;
void invalidate() override;
- void notifyMapChange(MapChange) override;
-
- void setMapChangeCallback(std::function<void(MapChange)>&& cb) { mapChangeCallback = std::move(cb); }
struct Impl {
virtual ~Impl() {}
@@ -45,8 +42,6 @@ private:
bool extensionsLoaded = false;
bool active = false;
-
- std::function<void(MapChange)> mapChangeCallback;
};
} // namespace mbgl