]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Remove duplicate lines of code
authorDaniel Gustafsson <dgustafsson@postgresql.org>
Mon, 24 Apr 2023 09:16:17 +0000 (11:16 +0200)
committerDaniel Gustafsson <dgustafsson@postgresql.org>
Mon, 24 Apr 2023 09:16:17 +0000 (11:16 +0200)
commita63b821c137524ad1ec699f20c0bf57987ffce82
tree17b8dc43e3f9af2733e0709b26b4da544cdc1846
parent214495dc5b712552d3938d5f03acddfedc8a81ca
Remove duplicate lines of code

Commit 6df7a9698bb accidentally included two identical prototypes for
default_multirange_selectivi() and commit 086cf1458c6 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
src/backend/utils/adt/multirangetypes_selfuncs.c
src/interfaces/ecpg/preproc/variable.c