From 8f5eebc2e9942a702ce500cb7db30147279c6a86 Mon Sep 17 00:00:00 2001
From: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Date: Thu, 27 Nov 2025 07:22:10 +0000
Subject: [PATCH v1 3/5] Removing unused function parameters in file_fdw

A few parameters are not used, let's remove them.
---
 contrib/file_fdw/file_fdw.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
 100.0% contrib/file_fdw/

diff --git a/contrib/file_fdw/file_fdw.c b/contrib/file_fdw/file_fdw.c
index 70564a68b13..7638bce6262 100644
--- a/contrib/file_fdw/file_fdw.c
+++ b/contrib/file_fdw/file_fdw.c
@@ -166,8 +166,7 @@ static bool check_selective_binary_conversion(RelOptInfo *baserel,
 											  List **columns);
 static void estimate_size(PlannerInfo *root, RelOptInfo *baserel,
 						  FileFdwPlanState *fdw_private);
-static void estimate_costs(PlannerInfo *root, RelOptInfo *baserel,
-						   FileFdwPlanState *fdw_private,
+static void estimate_costs(RelOptInfo *baserel, FileFdwPlanState *fdw_private,
 						   Cost *startup_cost, Cost *total_cost);
 static int	file_acquire_sample_rows(Relation onerel, int elevel,
 									 HeapTuple *rows, int targrows,
@@ -569,8 +568,7 @@ fileGetForeignPaths(PlannerInfo *root,
 										  (Node *) columns, -1));
 
 	/* Estimate costs */
-	estimate_costs(root, baserel, fdw_private,
-				   &startup_cost, &total_cost);
+	estimate_costs(baserel, fdw_private, &startup_cost, &total_cost);
 
 	/*
 	 * Create a ForeignPath node and add it as only possible path.  We use the
@@ -1139,7 +1137,7 @@ estimate_size(PlannerInfo *root, RelOptInfo *baserel,
  * Results are returned in *startup_cost and *total_cost.
  */
 static void
-estimate_costs(PlannerInfo *root, RelOptInfo *baserel,
+estimate_costs(RelOptInfo *baserel,
 			   FileFdwPlanState *fdw_private,
 			   Cost *startup_cost, Cost *total_cost)
 {
-- 
2.34.1

