From 2f29473efc263d006907eff0d742eaaef1b37b70 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Thu, 26 Jan 2017 09:25:15 -0800 Subject: [PATCH] Remove legacy iothread_perform templates We no longer need to have overloads for function pointers. --- src/iothread.h | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/iothread.h b/src/iothread.h index 0b26a4209..f3af54fbf 100644 --- a/src/iothread.h +++ b/src/iothread.h @@ -64,19 +64,6 @@ inline int iothread_perform(std::function &&func) { std::function()); } -/// Legacy templates -template -int iothread_perform(int (*handler)(T *), void (*completion)(T *, int), T *context) { - return iothread_perform(std::function([=](){return handler(context);}), - std::function([=](int v){completion(context, v);}) - ); -} - -template -int iothread_perform(int (*handler)(T *), T *context) { - return iothread_perform([=](){ handler(context); }); -} - /// Performs a function on the main thread, blocking until it completes. void iothread_perform_on_main(std::function &&func);