Skip to content

Commit 29ab156

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 2ecd5fb commit 29ab156

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
@@ -1555,7 +1555,6 @@ cube_coord_llur(PG_FUNCTION_ARGS)
15551555
{
15561556
NDBOX *cube = PG_GETARG_NDBOX(0);
15571557
int coord = PG_GETARG_INT32(1);
1558-
bool inverse = false;
15591558
float8 result;
15601559

15611560
/* 0 is the only unsupported coordinate value */
@@ -1593,10 +1592,6 @@ cube_coord_llur(PG_FUNCTION_ARGS)
15931592
result = 0.0;
15941593
}
15951594

1596-
/* Inverse value if needed */
1597-
if (inverse)
1598-
result = -result;
1599-
16001595
PG_RETURN_FLOAT8(result);
16011596
}
16021597

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy