Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 69537f5

Browse files
Remove duplicate lines of code
Commit 6df7a96 accidentally included two identical prototypes for default_multirange_selectivi() and commit 086cf14 added a break; statement where one was already present, thus duplicating it. While there is no bug caused by this, fix by removing the duplicated lines as they provide no value. Backpatch the fix for duplicate prototypes to v14 and the duplicate break statement fix to all supported branches to avoid backpatching hazards due to the removal. Reported-by: Anton Voloshin <a.voloshin@postgrespro.ru> Discussion: https://postgr.es/m/0e69cb60-0176-f6d0-7e15-6478b7d85724@postgrespro.ru
1 parent 781ac42 commit 69537f5

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

src/backend/utils/adt/multirangetypes_selfuncs.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ static double calc_multirangesel(TypeCacheEntry *typcache,
3535
VariableStatData *vardata,
3636
const MultirangeType *constval, Oid operator);
3737
static double default_multirange_selectivity(Oid operator);
38-
static double default_multirange_selectivity(Oid operator);
3938
static double calc_hist_selectivity(TypeCacheEntry *typcache,
4039
VariableStatData *vardata,
4140
const MultirangeType *constval,

src/interfaces/ecpg/preproc/variable.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ find_struct_member(char *name, char *str, struct ECPGstruct_member *members, int
105105
else
106106
return find_struct_member(name, ++end, members->type->u.members, brace_level);
107107
break;
108-
break;
109108
case '.':
110109
if (members->type->type == ECPGt_array)
111110
return find_struct_member(name, end, members->type->u.element->u.members, brace_level);

0 commit comments

Comments
 (0)