Обсуждение: pgsql: Remove unused functions in regress.c.

Поиск
Список
Период
Сортировка

pgsql: Remove unused functions in regress.c.

От
Tom Lane
Дата:
Remove unused functions in regress.c.

This patch removes five functions that presumably were once used in the
regression tests, but haven't been so used in many years.  Nonetheless
we've been wasting maintenance effort on them (e.g., by converting them
to V1 function protocol).  I see no reason to think that reviving them
would add any useful test coverage, so drop 'em.

In passing, mark regress_lseg_construct static, since it's not called
from outside this file.

Discussion: https://postgr.es/m/29322.1519701006@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/db3af9feb19f39827e916145f88fa5eca3130cb2

Modified Files
--------------
src/test/regress/expected/triggers.out           |  34 ----
src/test/regress/input/create_function_1.source  |   5 -
src/test/regress/input/create_function_2.source  |   5 -
src/test/regress/output/create_function_1.source |   4 -
src/test/regress/output/create_function_2.source |   4 -
src/test/regress/regress.c                       | 244 +----------------------
src/test/regress/sql/triggers.sql                |  35 ----
7 files changed, 2 insertions(+), 329 deletions(-)