From 7e2d14d225095404aab63998d3fd79337e9eb974 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Tue, 17 May 2022 20:00:12 +0900 Subject: [PATCH] shared library: remove redundant code This has never actually served any purpose; see core commit ab02d702ef. --- repmgr.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/repmgr.c b/repmgr.c index 749204f1..132dee96 100644 --- a/repmgr.c +++ b/repmgr.c @@ -86,7 +86,6 @@ static shmem_request_hook_type prev_shmem_request_hook = NULL; static shmem_startup_hook_type prev_shmem_startup_hook = NULL; void _PG_init(void); -void _PG_fini(void); #if (PG_VERSION_NUM >= 150000) static void repmgr_shmem_request(void); @@ -145,21 +144,6 @@ _PG_init(void) } - -/* - * Module unload callback - */ -void -_PG_fini(void) -{ - /* Uninstall hook */ -#if (PG_VERSION_NUM >= 150000) - shmem_request_hook = prev_shmem_request_hook; -#endif - - shmem_startup_hook = prev_shmem_startup_hook; -} - #if (PG_VERSION_NUM >= 150000) /* * shmem_requst_hook: request shared memory @@ -177,7 +161,7 @@ repmgr_shmem_request(void) #endif /* - * shmem_ hook: allocate or attach to shared memory, + * shmem_startup hook: allocate or attach to shared memory */ static void repmgr_shmem_startup(void)