Skip to content

Commit 973254e

Browse files
author
Nikita Glukhov
committed
Removed unused variables and functions
1 parent e39c094 commit 973254e

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/backend/tsearch/wparser.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,6 @@ ts_headline_jsonb_byid_opt(PG_FUNCTION_ARGS)
379379
text *opt = (PG_NARGS() > 3 && PG_GETARG_POINTER(3)) ? PG_GETARG_TEXT_P(3) : NULL;
380380
Jsonb *out;
381381
JsonTransformStringValuesAction action = (JsonTransformStringValuesAction) headline_json_value;
382-
JsonValue jv;
383382
HeadlineParsedText prs;
384383
HeadlineJsonState *state = palloc0(sizeof(HeadlineJsonState));
385384
Datum res;

src/backend/utils/adt/jsonb_util.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2574,6 +2574,7 @@ CompressedDatumDecompress(CompressedDatum *cd, Size offset)
25742574
cd->decompressed_len = offset;
25752575
}
25762576

2577+
#if 0 /* unused */
25772578
static void
25782579
CompressedDatumDecompressAll(CompressedDatum *cd)
25792580
{
@@ -2588,6 +2589,7 @@ CompressedDatumDecompressAll(CompressedDatum *cd)
25882589
cd->decompressed_len = cd->total_len;
25892590
}
25902591
}
2592+
#endif
25912593

25922594
static void
25932595
jsonbzInitContainer(JsonContainerData *jc, CompressedJsonb *cjb, int len)

src/backend/utils/adt/jsonfuncs.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -682,8 +682,6 @@ json_object_field_text(PG_FUNCTION_ARGS)
682682
static JsonValue *
683683
json_array_element_internal(Json *jb, int element)
684684
{
685-
JsonbValue *v;
686-
687685
if (!JB_ROOT_IS_ARRAY(jb))
688686
return NULL;
689687

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