diff options
author | David Rowley | 2024-04-09 23:10:16 +0000 |
---|---|---|
committer | David Rowley | 2024-04-09 23:10:16 +0000 |
commit | 5a15bdea3b791223b4cc708d4953a0086f4332a6 (patch) | |
tree | 403ff46843875813fc7271fc4e1fc3b7d4827d23 | |
parent | c99ef1811a064a94fb78917f35bb5853059a92b7 (diff) |
Remove unused BumpBlockIsValid macro
The bump allocator was recently added in 29f6a959c. Our other
allocators have a similar macro to this, but seemingly the version of
the macro for those allocators is only used in places where the chunk
header is decoded. Since the bump allocator has no chunk header, none
of those functions exist for bump therefore macro is unused. Remove it.
Reported-by: Peter Eisentraut
Discussion: https://postgr.es/m/[email protected]
-rw-r--r-- | src/backend/utils/mmgr/bump.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/backend/utils/mmgr/bump.c b/src/backend/utils/mmgr/bump.c index 38e81599262..449bd293448 100644 --- a/src/backend/utils/mmgr/bump.c +++ b/src/backend/utils/mmgr/bump.c @@ -101,13 +101,6 @@ struct BumpBlock (PointerIsValid(set) && IsA(set, BumpContext)) /* - * BumpBlockIsValid - * True iff block is valid block of a bump context - */ -#define BumpBlockIsValid(block) \ - (PointerIsValid(block) && BumpIsValid((block)->context)) - -/* * We always store external chunks on a dedicated block. This makes fetching * the block from an external chunk easy since it's always the first and only * chunk on the block. |