Convert macros to static inline functions (block.h)
authorPeter Eisentraut <peter@eisentraut.org>
Thu, 7 Jul 2022 06:30:52 +0000 (08:30 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Thu, 7 Jul 2022 06:36:51 +0000 (08:36 +0200)
commitd63d957e330c611f7a8c0ed02e4407f40f975026
treeb600b852d4ccde421e0ca71d2a8fe5b964c47963
parent495ed0ef2d72a6a74def296e042022479d5d07bd
Convert macros to static inline functions (block.h)

Remove BlockIdIsValid(), which wasn't used and is unnecessary.

Remove BlockIdCopy(), which wasn't used and can be done by struct
assignment.

(BlockIdEquals() also isn't used, but seems reasonable to keep
around.)

Reviewed-by: Amul Sul <sulamul@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/5b558da8-99fb-0a99-83dd-f72f05388517%40enterprisedb.com
src/include/storage/block.h