diff --git a/Utilities/Thread.h b/Utilities/Thread.h index d32a6f51c2..c4bc06700e 100644 --- a/Utilities/Thread.h +++ b/Utilities/Thread.h @@ -231,21 +231,6 @@ public: _wait_for(-1, true); } - // Wait until pred(). - template > - static inline RT wait(F&& pred) - { - while (true) - { - if (RT result = pred()) - { - return result; - } - - _wait_for(-1, true); - } - } - // Get current thread (may be nullptr) static thread_base* get_current() {