diff options
Diffstat (limited to 'platform/platform_mac.mm')
-rw-r--r-- | platform/platform_mac.mm | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/platform/platform_mac.mm b/platform/platform_mac.mm index fe638c4c56..dd82a46a02 100644 --- a/platform/platform_mac.mm +++ b/platform/platform_mac.mm @@ -113,13 +113,6 @@ Platform::Platform() string Platform::UniqueClientId() const { return [Alohalytics installationId].UTF8String; } -static void PerformImpl(void * obj) -{ - Platform::TFunctor * f = reinterpret_cast<Platform::TFunctor *>(obj); - (*f)(); - delete f; -} - void Platform::RunOnGuiThread(base::TaskLoop::Task && task) { ASSERT(m_guiThread, ()); @@ -132,21 +125,6 @@ void Platform::RunOnGuiThread(base::TaskLoop::Task const & task) m_guiThread->Push(task); } -void Platform::RunAsync(TFunctor const & fn, Priority p) -{ - int priority = DISPATCH_QUEUE_PRIORITY_DEFAULT; - switch (p) - { - case EPriorityDefault: priority = DISPATCH_QUEUE_PRIORITY_DEFAULT; break; - case EPriorityHigh: priority = DISPATCH_QUEUE_PRIORITY_HIGH; break; - case EPriorityLow: priority = DISPATCH_QUEUE_PRIORITY_LOW; break; - // It seems like this option is not supported in Snow Leopard. - //case EPriorityBackground: priority = DISPATCH_QUEUE_PRIORITY_BACKGROUND; break; - default: priority = INT16_MIN; - } - dispatch_async_f(dispatch_get_global_queue(priority, 0), new TFunctor(fn), &PerformImpl); -} - Platform::EConnectionType Platform::ConnectionStatus() { struct sockaddr_in zero; |