From d19308351322ea8314137d531a9935e19b6f235f Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Wed, 24 Jun 2015 14:50:54 -0700 Subject: Remove duration argument from View::notifyMapChange Fixes #1026 --- platform/ios/MGLMapView.mm | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) (limited to 'platform') 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(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 -- cgit v1.2.1