mirror of
https://github.com/postgres/postgres.git
synced 2026-01-29 12:02:15 +03:00
Remove AssertArg and AssertState
These don't offer anything over plain Assert, and their usage had already been declared obsolescent. Author: Nathan Bossart <nathandbossart@gmail.com> Reviewed-by: Michael Paquier <michael@paquier.xyz> Discussion: https://www.postgresql.org/message-id/20221009210148.GA900071@nathanxps13
This commit is contained in:
@@ -374,7 +374,7 @@ slot_getallattrs(TupleTableSlot *slot)
|
||||
static inline bool
|
||||
slot_attisnull(TupleTableSlot *slot, int attnum)
|
||||
{
|
||||
AssertArg(attnum > 0);
|
||||
Assert(attnum > 0);
|
||||
|
||||
if (attnum > slot->tts_nvalid)
|
||||
slot_getsomeattrs(slot, attnum);
|
||||
@@ -389,7 +389,7 @@ static inline Datum
|
||||
slot_getattr(TupleTableSlot *slot, int attnum,
|
||||
bool *isnull)
|
||||
{
|
||||
AssertArg(attnum > 0);
|
||||
Assert(attnum > 0);
|
||||
|
||||
if (attnum > slot->tts_nvalid)
|
||||
slot_getsomeattrs(slot, attnum);
|
||||
@@ -409,7 +409,7 @@ slot_getattr(TupleTableSlot *slot, int attnum,
|
||||
static inline Datum
|
||||
slot_getsysattr(TupleTableSlot *slot, int attnum, bool *isnull)
|
||||
{
|
||||
AssertArg(attnum < 0); /* caller error */
|
||||
Assert(attnum < 0); /* caller error */
|
||||
|
||||
if (attnum == TableOidAttributeNumber)
|
||||
{
|
||||
@@ -483,7 +483,7 @@ static inline TupleTableSlot *
|
||||
ExecCopySlot(TupleTableSlot *dstslot, TupleTableSlot *srcslot)
|
||||
{
|
||||
Assert(!TTS_EMPTY(srcslot));
|
||||
AssertArg(srcslot != dstslot);
|
||||
Assert(srcslot != dstslot);
|
||||
|
||||
dstslot->tts_ops->copyslot(dstslot, srcslot);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user