From 3393d47e92f50fca46cbe9bcd24e65fefd1840df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Fri, 23 Sep 2022 23:14:36 +0200 Subject: [PATCH] Remove ill-formed asserts --- Common/Thread/Promise.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/Common/Thread/Promise.h b/Common/Thread/Promise.h index 6fae6d7a2b..4145b4b6c1 100644 --- a/Common/Thread/Promise.h +++ b/Common/Thread/Promise.h @@ -79,7 +79,6 @@ public: // Returns T if the data is ready, nullptr if it's not. T Poll() { - _dbg_assert_(this != nullptr); std::lock_guard guard(readyMutex_); if (ready_) { return data_; @@ -96,7 +95,6 @@ public: } T BlockUntilReady() { - _dbg_assert_(this != nullptr); std::lock_guard guard(readyMutex_); if (ready_) { return data_;