diff options
author | Teodor Sigaev <teodor@sigaev.ru> | 2018-04-10 14:59:27 +0300 |
---|---|---|
committer | Teodor Sigaev <teodor@sigaev.ru> | 2018-04-10 14:59:27 +0300 |
commit | 5b0fa06f65e959f73c145c8104cb3fa8505fca73 (patch) | |
tree | 16c1adc2d1bd39fa655ab292c13d783f71e3e47f | |
parent | 3d465826f2aa86fc42b0930a6e4942585ed4ed43 (diff) |
Remove wrongly backpatched piece of code in cube.c
Due to sloppy division of changes between f50c80dbb (which was not
back-patched) and 563a053bd, 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
-rw-r--r-- | contrib/cube/cube.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/contrib/cube/cube.c b/contrib/cube/cube.c index 6c4a5b24c1d..d835fe1f875 100644 --- a/contrib/cube/cube.c +++ b/contrib/cube/cube.c @@ -1587,7 +1587,6 @@ cube_coord_llur(PG_FUNCTION_ARGS) { NDBOX *cube = PG_GETARG_NDBOX(0); int coord = PG_GETARG_INT32(1); - bool inverse = false; float8 result; /* 0 is the only unsupported coordinate value */ @@ -1625,10 +1624,6 @@ cube_coord_llur(PG_FUNCTION_ARGS) result = 0.0; } - /* Inverse value if needed */ - if (inverse) - result = -result; - PG_RETURN_FLOAT8(result); } |