Remove unnecessary forward declaration for heapam_methods variable

Started by Japin Liover 1 year ago2 messageshackers
Jump to latest
#1Japin Li
japinli@hotmail.com

Hi,

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

--
Regrads,
Japin Li

Attachments:

v1-0001-Remove-unnecessary-forward-declaration-for-heapam.patchtext/x-diffDownload+0-3
#2Michael Paquier
michael@paquier.xyz
In reply to: Japin Li (#1)
Re: Remove unnecessary forward declaration for heapam_methods variable

On Wed, Jul 31, 2024 at 10:36:11AM +0800, Japin Li wrote:

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

True. This can be removed because all the code paths using
heapam_methods are after its declaration, so duplicating it makes
little sense. Thanks, applied.
--
Michael