From: Andrew Dunstan Date: Sun, 19 Jul 2015 17:19:38 +0000 (-0400) Subject: Remove dead code. X-Git-Tag: REL9_6_BETA1~1667 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9aa663463bbf123e9d38dab88eeaef981fbc6caf;p=thirdparty%2Fpostgresql.git Remove dead code. Defect noticed by Coverity. --- diff --git a/src/backend/utils/adt/jsonfuncs.c b/src/backend/utils/adt/jsonfuncs.c index 424280b929e..17e787b60a2 100644 --- a/src/backend/utils/adt/jsonfuncs.c +++ b/src/backend/utils/adt/jsonfuncs.c @@ -3480,7 +3480,7 @@ jsonb_delete_idx(PG_FUNCTION_ARGS) if (idx >= n) PG_RETURN_JSONB(in); - pushJsonbValue(&state, r, r < WJB_BEGIN_ARRAY ? &v : NULL); + pushJsonbValue(&state, r, NULL); while ((r = JsonbIteratorNext(&it, &v, true)) != 0) {