summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2015-06-24 14:50:54 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2015-06-26 10:32:07 -0700
commitd19308351322ea8314137d531a9935e19b6f235f (patch)
treea785ef5841eda34ba133201a8c399d683b65ab78 /platform
parente6a576f6eb2fb0124b7cbfbc975398ded5e812f9 (diff)
downloadqtlocation-mapboxgl-d19308351322ea8314137d531a9935e19b6f235f.tar.gz
Remove duration argument from View::notifyMapChange
Fixes #1026
Diffstat (limited to 'platform')
-rw-r--r--platform/ios/MGLMapView.mm19
1 files changed, 3 insertions, 16 deletions
diff --git a/platform/ios/MGLMapView.mm b/platform/ios/MGLMapView.mm
index e70f6c7c60..8f279870e7 100644
--- a/platform/ios/MGLMapView.mm
+++ b/platform/ios/MGLMapView.mm
@@ -2726,23 +2726,10 @@ class MBGLView : public mbgl::View
// no-op
}
- void notifyMapChange(mbgl::MapChange change, std::chrono::steady_clock::duration delay = std::chrono::steady_clock::duration::zero()) override
+ void notifyMapChange(mbgl::MapChange change) override
{
- if (delay != std::chrono::steady_clock::duration::zero())
- {
- dispatch_after(dispatch_time(DISPATCH_TIME_NOW, std::chrono::duration_cast<std::chrono::nanoseconds>(delay).count()), dispatch_get_main_queue(), ^
- {
- [nativeView performSelector:@selector(notifyMapChange:)
- withObject:@(change)
- afterDelay:0];
- });
- }
- else
- {
- assert([[NSThread currentThread] isMainThread]);
-
- [nativeView notifyMapChange:@(change)];
- }
+ assert([[NSThread currentThread] isMainThread]);
+ [nativeView notifyMapChange:@(change)];
}
void activate() override