From b1099eca8f38ff5cfaf0901bb91cb6a22f909bc6 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Fri, 28 Oct 2022 09:19:06 +0200 Subject: Remove AssertArg and AssertState These don't offer anything over plain Assert, and their usage had already been declared obsolescent. Author: Nathan Bossart Reviewed-by: Michael Paquier Discussion: https://www.postgresql.org/message-id/20221009210148.GA900071@nathanxps13 --- src/include/c.h | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/include/c.h') diff --git a/src/include/c.h b/src/include/c.h index e5510e278d1..d70ed84ac58 100644 --- a/src/include/c.h +++ b/src/include/c.h @@ -793,8 +793,6 @@ typedef NameData *Name; #define Assert(condition) ((void)true) #define AssertMacro(condition) ((void)true) -#define AssertArg(condition) ((void)true) -#define AssertState(condition) ((void)true) #define AssertPointerAlignment(ptr, bndr) ((void)true) #elif defined(FRONTEND) @@ -802,8 +800,6 @@ typedef NameData *Name; #include #define Assert(p) assert(p) #define AssertMacro(p) ((void) assert(p)) -#define AssertArg(condition) assert(condition) -#define AssertState(condition) assert(condition) #define AssertPointerAlignment(ptr, bndr) ((void)true) #else /* USE_ASSERT_CHECKING && !FRONTEND */ @@ -828,14 +824,6 @@ typedef NameData *Name; ((void) ((condition) || \ (ExceptionalCondition(#condition, __FILE__, __LINE__), 0))) -/* - * AssertArg and AssertState are identical to Assert. Some places use them - * to indicate that the complaint is specifically about a bad argument or - * unexpected state, but this usage is largely obsolescent. - */ -#define AssertArg(condition) Assert(condition) -#define AssertState(condition) Assert(condition) - /* * Check that `ptr' is `bndr' aligned. */ -- cgit v1.2.3