Skip to content

Commit 698c7a3

Browse files
committed
Remove set-but-not-used variable.
In branches before 9.3, commit 8703059 caused join_is_legal()'s unique_ified variable to become unused, since its only remaining use is for LATERAL-related tests which don't exist pre-9.3. My compiler didn't complain about that, but Peter's does.
1 parent 52b0777 commit 698c7a3

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/backend/optimizer/path/joinrels.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,6 @@ join_is_legal(PlannerInfo *root, RelOptInfo *rel1, RelOptInfo *rel2,
324324
{
325325
SpecialJoinInfo *match_sjinfo;
326326
bool reversed;
327-
bool unique_ified;
328327
bool must_be_leftjoin;
329328
ListCell *l;
330329

@@ -342,7 +341,6 @@ join_is_legal(PlannerInfo *root, RelOptInfo *rel1, RelOptInfo *rel2,
342341
*/
343342
match_sjinfo = NULL;
344343
reversed = false;
345-
unique_ified = false;
346344
must_be_leftjoin = false;
347345

348346
foreach(l, root->join_info_list)
@@ -444,7 +442,6 @@ join_is_legal(PlannerInfo *root, RelOptInfo *rel1, RelOptInfo *rel2,
444442
return false; /* invalid join path */
445443
match_sjinfo = sjinfo;
446444
reversed = false;
447-
unique_ified = true;
448445
}
449446
else if (sjinfo->jointype == JOIN_SEMI &&
450447
bms_equal(sjinfo->syn_righthand, rel1->relids) &&
@@ -456,7 +453,6 @@ join_is_legal(PlannerInfo *root, RelOptInfo *rel1, RelOptInfo *rel2,
456453
return false; /* invalid join path */
457454
match_sjinfo = sjinfo;
458455
reversed = true;
459-
unique_ified = true;
460456
}
461457
else
462458
{

0 commit comments

Comments
 (0)