Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf100794

Browse files
author
Nikita Glukhov
committed
Removed unused variables and functions
1 parentd54b299 commitf100794

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
JsonTransformStringValuesActionaction= (JsonTransformStringValuesAction)headline_json_value;
382-
JsonValuejv;
383382
HeadlineParsedTextprs;
384383
HeadlineJsonState*state=palloc0(sizeof(HeadlineJsonState));
385384
Datumres;

‎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+
#if0/* unused */
25142515
staticvoid
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
staticvoid
25302532
jsonbzInitContainer(JsonContainerData*jc,CompressedJsonb*cjb,intlen)

‎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
staticJsonValue*
689689
json_array_element_internal(Json*jb,intelement)
690690
{
691-
JsonbValue*v;
692-
693691
if (!JB_ROOT_IS_ARRAY(jb))
694692
returnNULL;
695693

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

826823
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp