diff --git a/Utilities/Thread.h b/Utilities/Thread.h index 833c8c12b6..cccc97e832 100644 --- a/Utilities/Thread.h +++ b/Utilities/Thread.h @@ -95,13 +95,6 @@ struct thread_on_cleanup : std::bool_constant {}; template struct thread_on_cleanup::on_cleanup(std::declval*>()))> : std::bool_constant {}; -// Detect on_wait() method (should return bool) -template -struct thread_on_wait : std::bool_constant {}; - -template -struct thread_on_wait&>().on_wait())> : std::bool_constant {}; - template struct thread_thread_name : std::bool_constant {}; @@ -345,14 +338,6 @@ class named_thread final : public Context, result_storage_t, thread_bas return false; } - if constexpr (thread_on_wait()) - { - if (!static_cast(_this)->on_wait()) - { - return false; - } - } - _this->m_state_notifier.release(data); if (!data) @@ -366,15 +351,6 @@ class named_thread final : public Context, result_storage_t, thread_bas return false; } - if constexpr (thread_on_wait()) - { - if (!static_cast(_this)->on_wait()) - { - _this->m_state_notifier.release(nullptr); - return false; - } - } - return true; });