Remove unnecessary forward declaration for heapam_methods variable - Mailing list pgsql-hackers

From Japin Li
Subject Remove unnecessary forward declaration for heapam_methods variable
Date
Msg-id ME0P300MB04459456D5C4E70D48116896B6B12@ME0P300MB0445.AUSP300.PROD.OUTLOOK.COM
Whole thread Raw
Responses Re: Remove unnecessary forward declaration for heapam_methods variable
List pgsql-hackers
Hi,

I think the forward declaration for heapam_methods variable in heapam_handler.c
is unnecessary, right?

-- 
Regrads,
Japin Li

From 77a6957e94692b3c4c9437c69cdbcb48ea53f3ee Mon Sep 17 00:00:00 2001
From: Japin Li <jianping.li@ww-it.cn>
Date: Wed, 31 Jul 2024 10:01:04 +0800
Subject: [PATCH v1 1/1] Remove unnecessary forward declaration for
 heapam_methods variable

---
 src/backend/access/heap/heapam_handler.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/backend/access/heap/heapam_handler.c b/src/backend/access/heap/heapam_handler.c
index 6f8b1b7929..e28047c201 100644
--- a/src/backend/access/heap/heapam_handler.c
+++ b/src/backend/access/heap/heapam_handler.c
@@ -56,8 +56,6 @@ static bool SampleHeapTupleVisible(TableScanDesc scan, Buffer buffer,
 
 static BlockNumber heapam_scan_get_blocks_done(HeapScanDesc hscan);
 
-static const TableAmRoutine heapam_methods;
-
 
 /* ------------------------------------------------------------------------
  * Slot related callbacks for heap AM
-- 
2.43.0


pgsql-hackers by date:

Previous
From: "Zhijie Hou (Fujitsu)"
Date:
Subject: RE: Conflict detection and logging in logical replication
Next
From: Andres Freund
Date:
Subject: Re: Changing default -march landscape