diff --git a/src/iothread.h b/src/iothread.h index efb803207..e5383781b 100644 --- a/src/iothread.h +++ b/src/iothread.h @@ -44,13 +44,4 @@ int iothread_perform(int (*handler)(T *), T *context) { /// Performs a function on the main thread, blocking until it completes. void iothread_perform_on_main(std::function &&func); -template -int iothread_perform_on_main(int (*handler)(T *), T *context) { - int result = 0; - iothread_perform_on_main([&result,handler,context](){ - result = handler(context); - }); - return result; -} - #endif