Skip to content

Commit f100794

Browse files
author
Nikita Glukhov
committed
Removed unused variables and functions
1 parent d54b299 commit f100794

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
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
@@ -2511,6 +2511,7 @@ CompressedDatumDecompress(CompressedDatum *cd, Size offset)
25112511
cd->decompressed_len = offset;
25122512
}
25132513

2514+
#if 0 /* unused */
25142515
static void
25152516
CompressedDatumDecompressAll(CompressedDatum *cd)
25162517
{
@@ -2525,6 +2526,7 @@ CompressedDatumDecompressAll(CompressedDatum *cd)
25252526
cd->decompressed_len = cd->total_len;
25262527
}
25272528
}
2529+
#endif
25282530

25292531
static void
25302532
jsonbzInitContainer(JsonContainerData *jc, CompressedJsonb *cjb, int len)

src/backend/utils/adt/jsonfuncs.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -688,8 +688,6 @@ json_object_field_text(PG_FUNCTION_ARGS)
688688
static JsonValue *
689689
json_array_element_internal(Json *jb, int element)
690690
{
691-
JsonbValue *v;
692-
693691
if (!JB_ROOT_IS_ARRAY(jb))
694692
return NULL;
695693

@@ -820,7 +818,6 @@ get_jsonb_path_all(Json *jb, ArrayType *path, JsonValue *resbuf)
820818
bool have_object = false,
821819
have_array = false;
822820
JsonbValue *jbvp = NULL;
823-
JsonbValue jbvbuf;
824821
JsonbContainer *container;
825822

826823
/*

0 commit comments

Comments
 (0)