Skip to content

Commit eb9c43f

Browse files
bdrouvotAWSCommitfest Bot
authored andcommitted
Removing unused function parameters in file_fdw
A few parameters are not used, let's remove them.
1 parent 8a7a750 commit eb9c43f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

contrib/file_fdw/file_fdw.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,7 @@ static bool check_selective_binary_conversion(RelOptInfo *baserel,
166166
List **columns);
167167
static void estimate_size(PlannerInfo *root, RelOptInfo *baserel,
168168
FileFdwPlanState *fdw_private);
169-
static void estimate_costs(PlannerInfo *root, RelOptInfo *baserel,
170-
FileFdwPlanState *fdw_private,
169+
static void estimate_costs(RelOptInfo *baserel, FileFdwPlanState *fdw_private,
171170
Cost *startup_cost, Cost *total_cost);
172171
static int file_acquire_sample_rows(Relation onerel, int elevel,
173172
HeapTuple *rows, int targrows,
@@ -569,8 +568,7 @@ fileGetForeignPaths(PlannerInfo *root,
569568
(Node *) columns, -1));
570569

571570
/* Estimate costs */
572-
estimate_costs(root, baserel, fdw_private,
573-
&startup_cost, &total_cost);
571+
estimate_costs(baserel, fdw_private, &startup_cost, &total_cost);
574572

575573
/*
576574
* Create a ForeignPath node and add it as only possible path. We use the
@@ -1139,7 +1137,7 @@ estimate_size(PlannerInfo *root, RelOptInfo *baserel,
11391137
* Results are returned in *startup_cost and *total_cost.
11401138
*/
11411139
static void
1142-
estimate_costs(PlannerInfo *root, RelOptInfo *baserel,
1140+
estimate_costs(RelOptInfo *baserel,
11431141
FileFdwPlanState *fdw_private,
11441142
Cost *startup_cost, Cost *total_cost)
11451143
{

0 commit comments

Comments
 (0)