From 520e567390b182123b48bfbf1f088dae12452fb9 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Mon, 23 Jan 2017 10:46:42 -0800 Subject: [PATCH] Eliminate the old-style iothread_perform_on_main All clients now use the std::function form (i.e. lambdas) --- src/iothread.h | 9 --------- 1 file changed, 9 deletions(-) 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