From 9f4bddd840577b80a6a0c1fce060b76cc52722fd Mon Sep 17 00:00:00 2001 From: Roman Lavrov Date: Thu, 24 Aug 2023 10:54:43 -0400 Subject: [PATCH] Cleanup: remove unused ANGLE_ASSERT_IMPL Bug: b/297343154 Change-Id: Iccde6b93fd26aa5b575a11d0ac61c59f03508567 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4810192 Commit-Queue: Shahbaz Youssefi Commit-Queue: Roman Lavrov Reviewed-by: Shahbaz Youssefi Auto-Submit: Roman Lavrov --- src/common/debug.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/common/debug.h b/src/common/debug.h index a9ee79510..21a55151f 100644 --- a/src/common/debug.h +++ b/src/common/debug.h @@ -315,13 +315,6 @@ std::ostream &FmtHex(std::ostream &os, T value) # define ANGLE_CRASH() ((void)(*(volatile char *)0 = 0)), __assume(0) #endif -#if !defined(NDEBUG) -# define ANGLE_ASSERT_IMPL(expression) assert(expression) -#else -// TODO(jmadill): Detect if debugger is attached and break. -# define ANGLE_ASSERT_IMPL(expression) ANGLE_CRASH() -#endif // !defined(NDEBUG) - // Note that gSwallowStream is used instead of an arbitrary LOG() stream to avoid the creation of an // object with a non-trivial destructor (LogMessage). On MSVC x86 (checked on 2015 Update 3), this // causes a few additional pointless instructions to be emitted even at full optimization level,