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);