Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5b0fa06

Browse files
committed
Remove wrongly backpatched piece of code in cube.c
Due to sloppy division of changes between f50c80d (which was not back-patched) and 563a053, this piece of code was wrongly backpatched to REL_10_STABLE and REL9_6_STABLE. This code never causes real error because its condition is never satisfied, but it's a dead code, which needs to be removed. Alexander Korotkov per gripe from Tom Lane
1 parent 3d46582 commit 5b0fa06

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

contrib/cube/cube.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1587,7 +1587,6 @@ cube_coord_llur(PG_FUNCTION_ARGS)
15871587
{
15881588
NDBOX *cube = PG_GETARG_NDBOX(0);
15891589
int coord = PG_GETARG_INT32(1);
1590-
bool inverse = false;
15911590
float8 result;
15921591

15931592
/* 0 is the only unsupported coordinate value */
@@ -1625,10 +1624,6 @@ cube_coord_llur(PG_FUNCTION_ARGS)
16251624
result = 0.0;
16261625
}
16271626

1628-
/* Inverse value if needed */
1629-
if (inverse)
1630-
result = -result;
1631-
16321627
PG_RETURN_FLOAT8(result);
16331628
}
16341629

0 commit comments

Comments
 (0)